Documentation
¶
Index ¶
- func CompareObjectMeta(t *testing.T, got, want metav1.ObjectMeta)
- func GetTestClientWithObjects(predefinedObjects []runtime.Object) client.Client
- func HandleDeployUpdate(ctx context.Context, rclient client.Client, newDeploy *appsv1.Deployment) error
- func HandleSTSUpdate(ctx context.Context, rclient client.Client, cr STSOptions, ...) error
- func MergeAnnotations(prev, current map[string]string) map[string]string
- func MergePatchContainers(base, patches []v1.Container) ([]v1.Container, error)
- func PodIsReady(pod corev1.Pod) bool
- func SanitizeVolumeName(name string) string
- func UpdatePodAnnotations(ctx context.Context, rclient client.Client, selector map[string]string, ...) error
- type STSOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareObjectMeta ¶
func CompareObjectMeta(t *testing.T, got, want metav1.ObjectMeta)
func HandleDeployUpdate ¶ added in v0.22.1
func HandleSTSUpdate ¶ added in v0.20.0
func HandleSTSUpdate(ctx context.Context, rclient client.Client, cr STSOptions, newSts, currentSts *appsv1.StatefulSet, c *config.BaseOperatorConf) error
func MergeAnnotations ¶ added in v0.22.0
MergeAnnotations adds annotations with kubernetes.io/ to the current map from prev It's needed for kubectl restart, correct updates such annotations managed by kubernetes controller and shouldn't be changed by operator
func MergePatchContainers ¶
MergePatchContainers adds patches to base using a strategic merge patch and iterating by container name, failing on the first error
func PodIsReady ¶ added in v0.20.0
func SanitizeVolumeName ¶
Types ¶
type STSOptions ¶ added in v0.20.0
type STSOptions struct {
SelectorLabels func() map[string]string
VolumeName func() string
UpdateStrategy func() appsv1.StatefulSetUpdateStrategyType
}
Click to show internal directories.
Click to hide internal directories.