test

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTestNode

func BuildTestNode(name string, millicpu int64, mem int64, pods int64) *v1.Node

BuildTestNode creates a node with specified capacity.

func BuildTestPod

func BuildTestPod(name string, cpu int64, memory int64, nodeName string) *v1.Pod

BuildTestPod creates a test pod with given parameters.

func GetCriticalPodAnnotation

func GetCriticalPodAnnotation() map[string]string

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

func GetMirrorPodAnnotation() map[string]string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL