Documentation ¶
Index ¶
- func ApplyGenerationAvailability(versionAvailability operatorsv1alpha1.VersionAvailablity, ...) operatorsv1alpha1.VersionAvailablity
- func BoolPtr(val bool) *bool
- func EnsureObjectMeta(modified *bool, existing *metav1.ObjectMeta, required metav1.ObjectMeta)
- func ExpectedDeploymentGeneration(required *appsv1.Deployment, ...) int64
- func MergeConfigMap(configMap *corev1.ConfigMap, configKey string, ...) (*corev1.ConfigMap, bool, error)
- func MergeMap(modified *bool, existing *map[string]string, required map[string]string)
- func MergeProcessConfig(specialCases map[string]MergeFunc, configYAMLs ...[]byte) ([]byte, error)
- func SetBool(modified *bool, existing *bool, required bool)
- func SetInt32(modified *bool, existing *int32, required int32)
- func SetInt32IfSet(modified *bool, existing *int32, required int32)
- func SetInt64(modified *bool, existing *int64, required int64)
- func SetMapStringString(modified *bool, existing *map[string]string, required map[string]string)
- func SetMapStringStringIfSet(modified *bool, existing *map[string]string, required map[string]string)
- func SetString(modified *bool, existing *string, required string)
- func SetStringIfSet(modified *bool, existing *string, required string)
- func SetStringSlice(modified *bool, existing *[]string, required []string)
- func SetStringSliceIfSet(modified *bool, existing *[]string, required []string)
- type MergeFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyGenerationAvailability ¶
func ApplyGenerationAvailability(versionAvailability operatorsv1alpha1.VersionAvailablity, actual *appsv1.Deployment, errors ...error) operatorsv1alpha1.VersionAvailablity
func EnsureObjectMeta ¶
func EnsureObjectMeta(modified *bool, existing *metav1.ObjectMeta, required metav1.ObjectMeta)
EnsureObjectMeta writes namespace, name, labels, and annotations. Don't set other things here. TODO finalizer support maybe?
func ExpectedDeploymentGeneration ¶
func ExpectedDeploymentGeneration(required *appsv1.Deployment, previousAvailability *operatorsv1alpha1.VersionAvailablity) int64
func MergeConfigMap ¶
func MergeConfigMap(configMap *corev1.ConfigMap, configKey string, specialCases map[string]MergeFunc, configYAMLs ...[]byte) (*corev1.ConfigMap, bool, error)
MergeConfigMap takes a configmap, the target key, special overlay funcs a list of config configs to overlay on top of each other It returns the resultant configmap and a bool indicating if any changes were made to the configmap
func MergeProcessConfig ¶
MergeProcessConfig merges a series of config yaml files together with each later one overlaying all previous
func SetInt32IfSet ¶
func SetMapStringString ¶
func SetMapStringStringIfSet ¶
func SetStringIfSet ¶
func SetStringSlice ¶
func SetStringSliceIfSet ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.