Documentation ¶
Index ¶
- func BuildTestNode(name string, millicpu int64, mem int64) *apiv1.Node
- func BuildTestPod(name string, cpu int64, mem int64) *apiv1.Pod
- func GetReplicaSetAnnotation() map[string]string
- func RefJSON(o runtime.Object) string
- func SetNodeReadyState(node *apiv1.Node, ready bool, lastTransition time.Time)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTestNode ¶
BuildTestNode creates a node with specified capacity.
func BuildTestPod ¶
BuildTestPod creates a pod with specified resources.
func GetReplicaSetAnnotation ¶
GetReplicaSetAnnotation returns a map containing annotation simulating pod being created by ReplicaSet
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.