Documentation ¶
Index ¶
- func MockContainer(name string) corev1.Container
- func MockCronJob() batchv1beta1.CronJob
- func MockDaemonSet() appsv1.DaemonSet
- func MockDeploy() appsv1.Deployment
- func MockJob() batchv1.Job
- func MockPod() corev1.PodTemplateSpec
- func MockReplicationController() corev1.ReplicationController
- func MockStatefulSet() appsv1.StatefulSet
- func SetupAddControllers(k kubernetes.Interface, namespace string) kubernetes.Interface
- func SetupTestAPI() kubernetes.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockContainer ¶
MockContainer creates a container object
func MockDaemonSet ¶
MockDaemonSet creates a DaemonSet 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.
Click to show internal directories.
Click to hide internal directories.