test

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2017 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

TODO:@ravisantoshgudimetla. As of now building some test pods here. This needs to move to utils after refactor. buildTestPod creates a test pod with given parameters.

func GetCriticalPodAnnotation

func GetCriticalPodAnnotation() map[string]string

GetCriticalPodAnnotation returns the annotation needed for critical pod.

func GetDaemonSetAnnotation

func GetDaemonSetAnnotation() map[string]string

GetDaemonSetAnnotation returns the annotation needed for daemonset pod.

func GetMirrorPodAnnotation

func GetMirrorPodAnnotation() map[string]string

GetMirrorPodAnnotation returns the annotation needed for mirror pod.

func GetNormalPodAnnotation

func GetNormalPodAnnotation() map[string]string

GetNormalPodAnnotation returns the annotation needed for a pod.

func GetReplicaSetAnnotation

func GetReplicaSetAnnotation() map[string]string

GetReplicaSetAnnotation returns the annotation 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