Documentation
¶
Index ¶
- func GetEnv(d *appsv1.Deployment, container string, key string) (*string, error)
- func GetTemplateSpecContainerByName(name string, depl appsv1.Deployment) *corev1.Container
- func GetTemplateSpecInitContainerByName(name string, depl appsv1.Deployment) *corev1.Container
- func HaveAvailableReplicas(availableReplicas int) matcher.GomegaMatcher
- func HaveConditionTypeStatus(expectedConditionType appsv1.DeploymentConditionType, ...) matcher.GomegaMatcher
- func HaveContainerCommandSubstring(expectedCommandSubstring string, containerIndex int) matcher.GomegaMatcher
- func HaveContainerWithEnvVar(envKey string, envValue string, containerIndex int) matcher.GomegaMatcher
- func HaveObservedGeneration(observedGeneration int) matcher.GomegaMatcher
- func HaveReadyReplicas(readyReplicas int) matcher.GomegaMatcher
- func HaveReplicas(replicas int) matcher.GomegaMatcher
- func HaveResourceRequirements(requirements *corev1.ResourceRequirements) matcher.GomegaMatcher
- func HaveServiceAccountName(expectedServiceAccountName string) matcher.GomegaMatcher
- func HaveSpecTemplateSpecVolume(volumeParam corev1.Volume) matcher.GomegaMatcher
- func HaveTemplateAnnotationWithValue(key string, value string) matcher.GomegaMatcher
- func HaveTemplateLabelWithValue(key string, value string) matcher.GomegaMatcher
- func HaveTemplateSpec(podTemplateSpec corev1.PodTemplateSpec) matcher.GomegaMatcher
- func HaveTemplateSpecNodeSelector(nodeSelector map[string]string) matcher.GomegaMatcher
- func HaveTolerations(tolerations []corev1.Toleration) matcher.GomegaMatcher
- func HaveUpdatedReplicas(updatedReplicas int) matcher.GomegaMatcher
- func RemoveEnv(depl *appsv1.Deployment, container string, key string)
- func SetEnv(depl *appsv1.Deployment, container string, key string, value string)
- func Update(obj *appsv1.Deployment, modify func(*appsv1.Deployment))
- func VerifyDeploymentImagePullPolicy(name, namespace string, expectedPolicy corev1.PullPolicy) func() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTemplateSpecContainerByName ¶
func GetTemplateSpecContainerByName(name string, depl appsv1.Deployment) *corev1.Container
func GetTemplateSpecInitContainerByName ¶
func GetTemplateSpecInitContainerByName(name string, depl appsv1.Deployment) *corev1.Container
func HaveAvailableReplicas ¶
func HaveAvailableReplicas(availableReplicas int) matcher.GomegaMatcher
func HaveConditionTypeStatus ¶
func HaveConditionTypeStatus(expectedConditionType appsv1.DeploymentConditionType, expectedConditionStatus corev1.ConditionStatus) matcher.GomegaMatcher
func HaveContainerCommandSubstring ¶
func HaveContainerCommandSubstring(expectedCommandSubstring string, containerIndex int) matcher.GomegaMatcher
func HaveContainerWithEnvVar ¶
func HaveContainerWithEnvVar(envKey string, envValue string, containerIndex int) matcher.GomegaMatcher
HaveContainerWithEnvVar matchs when a container exists under .spec.template.spec.containers, at position 'containerIndex' in the container array, with env var key/value
func HaveObservedGeneration ¶
func HaveObservedGeneration(observedGeneration int) matcher.GomegaMatcher
func HaveReadyReplicas ¶
func HaveReadyReplicas(readyReplicas int) matcher.GomegaMatcher
func HaveReplicas ¶
func HaveReplicas(replicas int) matcher.GomegaMatcher
func HaveResourceRequirements ¶
func HaveResourceRequirements(requirements *corev1.ResourceRequirements) matcher.GomegaMatcher
HaveResourceRequirements validates if the deployment object contains the given resource requirements.
func HaveServiceAccountName ¶
func HaveServiceAccountName(expectedServiceAccountName string) matcher.GomegaMatcher
func HaveSpecTemplateSpecVolume ¶
func HaveSpecTemplateSpecVolume(volumeParam corev1.Volume) matcher.GomegaMatcher
func HaveTemplateAnnotationWithValue ¶
func HaveTemplateAnnotationWithValue(key string, value string) matcher.GomegaMatcher
func HaveTemplateLabelWithValue ¶
func HaveTemplateLabelWithValue(key string, value string) matcher.GomegaMatcher
func HaveTemplateSpec ¶
func HaveTemplateSpec(podTemplateSpec corev1.PodTemplateSpec) matcher.GomegaMatcher
func HaveTemplateSpecNodeSelector ¶
func HaveTemplateSpecNodeSelector(nodeSelector map[string]string) matcher.GomegaMatcher
func HaveTolerations ¶
func HaveTolerations(tolerations []corev1.Toleration) matcher.GomegaMatcher
func HaveUpdatedReplicas ¶
func HaveUpdatedReplicas(updatedReplicas int) matcher.GomegaMatcher
func Update ¶
func Update(obj *appsv1.Deployment, modify func(*appsv1.Deployment))
Update will keep trying to update object until it succeeds, or times out.
func VerifyDeploymentImagePullPolicy ¶
func VerifyDeploymentImagePullPolicy(name, namespace string, expectedPolicy corev1.PullPolicy) func() bool
verifyDeploymentImagePullPolicy checks if all containers in a deployment have the expected imagePullPolicy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.