Documentation
¶
Index ¶
- func CopyEnvVars(in []corev1.EnvVar) []corev1.EnvVar
- func CopyPullSecrets(in []corev1.LocalObjectReference) []corev1.LocalObjectReference
- func DeepMergeMap(dst, src map[string]any)
- func MergeEnvVars(defaults, overrides []corev1.EnvVar, jsonMergeKeys ...string) []corev1.EnvVar
- func MergeJSONEnvVarValues(base, higher string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyEnvVars ¶
CopyEnvVars returns a deep copy of the provided environment variables slice.
func CopyPullSecrets ¶
func CopyPullSecrets(in []corev1.LocalObjectReference) []corev1.LocalObjectReference
CopyPullSecrets returns a deep copy of the provided image pull secrets slice.
func DeepMergeMap ¶
DeepMergeMap recursively merges src into dst. Values from src take precedence. Nested maps are merged recursively.
func MergeEnvVars ¶
MergeEnvVars combines default env vars with service-specific overrides. Service env vars take precedence over defaults when env var names match. If jsonMergeKeys is provided, env vars with those names are deep-merged as JSON objects.
func MergeJSONEnvVarValues ¶
MergeJSONEnvVarValues deep-merges two JSON object strings. The higher precedence value (from) takes priority in case of key conflicts. Non-JSON values or parsing errors result in the higher precedence value being used directly.
Types ¶
This section is empty.