Documentation
¶
Index ¶
- func GetEnv(d *appsv1.Deployment, 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 HaveServiceAccountName(expectedServiceAccountName string) matcher.GomegaMatcher
- func HaveTemplateAnnotationWithValue(key string, value string) matcher.GomegaMatcher
- func HaveTemplateLabelWithValue(key string, value string) 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, key string)
- func SetEnv(depl *appsv1.Deployment, key string, value string)
- func Update(obj *appsv1.Deployment, modify func(*appsv1.Deployment))
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 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 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.
Click to show internal directories.
Click to hide internal directories.