Documentation ¶
Index ¶
- func BuildTestNode(name string, millicpu int64, mem int64, pods int64) *v1.Node
- func BuildTestPod(name string, cpu int64, memory int64, nodeName string) *v1.Pod
- func GetCriticalPodAnnotation() map[string]string
- func GetDaemonSetOwnerRefList() []metav1.OwnerReference
- func GetMirrorPodAnnotation() map[string]string
- func GetNormalPodOwnerRefList() []metav1.OwnerReference
- func GetReplicaSetOwnerRefList() []metav1.OwnerReference
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 test pod with given parameters.
func GetCriticalPodAnnotation ¶
GetCriticalPodAnnotation returns the annotation needed for critical pod.
func GetDaemonSetOwnerRefList ¶ added in v0.4.0
func GetDaemonSetOwnerRefList() []metav1.OwnerReference
GetDaemonSetOwnerRefList returns the ownerRef needed for daemonset pod.
func GetMirrorPodAnnotation ¶
GetMirrorPodAnnotation returns the annotation needed for mirror pod.
func GetNormalPodOwnerRefList ¶ added in v0.4.0
func GetNormalPodOwnerRefList() []metav1.OwnerReference
GetNormalPodOwnerRefList returns the ownerRef needed for a pod.
func GetReplicaSetOwnerRefList ¶ added in v0.4.0
func GetReplicaSetOwnerRefList() []metav1.OwnerReference
GetReplicaSetOwnerRefList returns the ownerRef needed for replicaset pod.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.