Documentation
¶
Index ¶
- func BoolPtr(t bool) *bool
- func Coalesce(str ...string) string
- func Int32Ptr(i int32) *int32
- func Int64Ptr(i int64) *int64
- func MergeEnvFromSource(srcs ...[]corev1.EnvFromSource) []corev1.EnvFromSource
- func MergeEnvVar(envs ...[]corev1.EnvVar) []corev1.EnvVar
- func MergeLabels(lbls ...map[string]string) map[string]string
- func MergeMounts(mounts ...[]corev1.VolumeMount) []corev1.VolumeMount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Coalesce ¶
Coalesce returns the first non-empty string from the input list.
func MergeEnvFromSource ¶
func MergeEnvFromSource(srcs ...[]corev1.EnvFromSource) []corev1.EnvFromSource
MergeEnvFromSource merges multiple slices of EnvFromSource into a single slice.
func MergeEnvVar ¶
MergeEnvVar merges multiple slices of EnvVar into a single slice.
func MergeLabels ¶
MergeLabels merges multiple maps of labels into a single map.
func MergeMounts ¶
func MergeMounts(mounts ...[]corev1.VolumeMount) []corev1.VolumeMount
MergeMounts merges multiple slices of VolumeMounts into a single slice.
Types ¶
This section is empty.
Source Files
¶
- spec_helpers.go
- strings_helpers.go
Click to show internal directories.
Click to hide internal directories.