Documentation ¶
Index ¶
- Constants
- Variables
- func GetEnvVars(envVarType string) []corev1.EnvVar
- func GetRandomEnvVarType() []corev1.EnvVar
- func NewFakeJob(name, namespace string, randomEnvVars bool) *batchv1.Job
- func NewFakeNode(nodeName string) *corev1.Node
- func NewFakePod(name, namespace string, randomEnvVars bool) *corev1.Pod
- func SetDefaultEnvVarsType(envVarType string)
Constants ¶
View Source
const ( LabelKeyApp = "app" LabelValueFakeJob = "fake-job" LabelValueFakePod = "fake-pod" LabelSelectorFakePod = LabelKeyApp + "=" + LabelValueFakePod )
Variables ¶
View Source
var ( // EnvVarCount is the number of envvars in a pod spec. EnvVarCount = 5 // MaxEnvVarSize is the maximum size of an env var in bytes. MaxEnvVarSize = 10 * 1024 // EnvVarsType is the type of env vars that should be used when creating fake pods (nano, micro, xsmall...). EnvVarsType = newEnvVars(EnvVarCount, 2*1024, "SOME_ENV_VAR_MEDIUM") )
Functions ¶
func GetEnvVars ¶ added in v0.2.4
func GetRandomEnvVarType ¶ added in v0.2.3
func NewFakeJob ¶
NewFakeJob creates a fake Kubernetes Job resource, managed by KWOK, with the specified name and namespace.
func NewFakeNode ¶
NewFakeNode creates a fake Kubernetes Node resource, managed by KWOK, with the specified name.
func NewFakePod ¶
NewFakePod creates a fake Kubernetes Pod resource, managed by KWOK, with the specified name and namespace.
func SetDefaultEnvVarsType ¶ added in v0.1.0
func SetDefaultEnvVarsType(envVarType string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.