statefulset

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemplateSpecContainerByName

func GetTemplateSpecContainerByName(name string, depl appsv1.StatefulSet) *corev1.Container

func GetTemplateSpecInitContainerByName

func GetTemplateSpecInitContainerByName(name string, depl appsv1.StatefulSet) *corev1.Container

func HaveContainerCommandSubstring

func HaveContainerCommandSubstring(expectedCommandSubstring string, containerIndex int) matcher.GomegaMatcher

func HaveContainerImage

func HaveContainerImage(containerImage string, containerIndex int) matcher.GomegaMatcher

func HaveContainerWithEnvVar

func HaveContainerWithEnvVar(envKey string, envValue string, containerIndex int) matcher.GomegaMatcher

func HaveContainerWithEnvVarFromConfigMap

func HaveContainerWithEnvVarFromConfigMap(envKey string, configMapName string, configMapKey string, containerIndex int) matcher.GomegaMatcher

HaveContainerWithEnvVarFromConfigMap checks if a container has an env var that references a ConfigMap key

func HaveReadyReplicas

func HaveReadyReplicas(readyReplicas int) matcher.GomegaMatcher

func HaveReplicas

func HaveReplicas(replicas int) 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 NotHaveContainerImage

func NotHaveContainerImage(containerImage string, containerIndex int) matcher.GomegaMatcher

func Restart

func Restart(obj *appsv1.StatefulSet)

Restart triggers a rollout restart by updating the restartedAt annotation

func Update

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

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

func VerifyStatefulSetImagePullPolicy

func VerifyStatefulSetImagePullPolicy(name, namespace string, expectedPolicy corev1.PullPolicy, ss *appsv1.StatefulSet) func() bool

verifyStatefulSetImagePullPolicy checks if all containers in a statefulset have the expected imagePullPolicy

Types

This section is empty.

Jump to

Keyboard shortcuts

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