utils_test

package
v0.0.0-...-821f9ce Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeployment

func NewDeployment(name, namespace string, replicas int32, options *NewDeploymentOptions) *appsv1beta1.Deployment

NewDeployment returns new Deployment instance for testing purpose

func NewPod

func NewPod(name, namespace, hash string, options *NewPodOptions) *corev1.Pod

NewPod returns new Pod instance for testing purpose

func NewPods

func NewPods(name, namespace, hash string, replicas uint32, options *NewPodOptions) []*corev1.Pod

NewPods returns a slice of new Pod instance

func NewService

func NewService(name, namespace string, labelsSelector map[string]string, options *NewServiceOptions) *corev1.Service

NewService returns new corev1.Service instance

Types

type NewDeploymentOptions

type NewDeploymentOptions struct {
	CreationTime *metav1.Time
	Selector     map[string]string
	Labels       map[string]string
}

NewDeploymentOptions used to provide Deployment creation options

type NewPodOptions

type NewPodOptions struct {
	CreationTime *metav1.Time
	Labels       map[string]string
}

NewPodOptions used to store Pod creation options

type NewServiceOptions

type NewServiceOptions struct {
	Type  corev1.ServiceType
	Ports []corev1.ServicePort
}

NewServiceOptions used to provide Service creation options

Jump to

Keyboard shortcuts

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