test

package
v0.0.0-...-ddeca49 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockContainer

func MockContainer(name string) corev1.Container

MockContainer creates a container object

func MockCronJob

func MockCronJob() batchv1beta1.CronJob

MockCronJob creates a CronJob object.

func MockDaemonSet

func MockDaemonSet() appsv1.DaemonSet

MockDaemonSet creates a DaemonSet object.

func MockDeploy

func MockDeploy() appsv1.Deployment

MockDeploy creates a Deployment object.

func MockJob

func MockJob() batchv1.Job

MockJob creates a Job object.

func MockPod

func MockPod() corev1.PodTemplateSpec

MockPod creates a pod object.

func MockReplicationController

func MockReplicationController() corev1.ReplicationController

MockReplicationController creates a ReplicationController object.

func MockStatefulSet

func MockStatefulSet() appsv1.StatefulSet

MockStatefulSet creates a StatefulSet object.

func SetupAddControllers

func SetupAddControllers(k kubernetes.Interface, namespace string) kubernetes.Interface

SetupAddControllers creates mock controllers and adds them to the test clientset.

func SetupTestAPI

func SetupTestAPI() kubernetes.Interface

SetupTestAPI creates a test kube API struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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