deployment

package
v1.17.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(d *appsv1.Deployment, key string) (*string, error)

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 HaveServiceAccountName

func HaveServiceAccountName(expectedServiceAccountName string) matcher.GomegaMatcher

func HaveTemplateAnnotationWithValue

func HaveTemplateAnnotationWithValue(key string, value string) matcher.GomegaMatcher

func HaveTemplateLabelWithValue

func HaveTemplateLabelWithValue(key string, value string) 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 RemoveEnv

func RemoveEnv(depl *appsv1.Deployment, key string)

func SetEnv

func SetEnv(depl *appsv1.Deployment, key string, value string)

func Update

func Update(obj *appsv1.Deployment, modify func(*appsv1.Deployment))

Update will keep trying to update object until it succeeds, or times out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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