crdtools

package
v2.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(t bool) *bool

BoolPtr returns a pointer to a bool.

func Coalesce

func Coalesce(str ...string) string

Coalesce returns the first non-empty string from the input list.

func Int32Ptr

func Int32Ptr(i int32) *int32

Int32Ptr returns a pointer to an int32.

func Int64Ptr

func Int64Ptr(i int64) *int64

Int64Ptr returns a pointer to an int64.

func MergeEnvFromSource

func MergeEnvFromSource(srcs ...[]corev1.EnvFromSource) []corev1.EnvFromSource

MergeEnvFromSource merges multiple slices of EnvFromSource into a single slice.

func MergeEnvVar

func MergeEnvVar(envs ...[]corev1.EnvVar) []corev1.EnvVar

MergeEnvVar merges multiple slices of EnvVar into a single slice.

func MergeLabels

func MergeLabels(lbls ...map[string]string) map[string]string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL