util

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindEnvIndex

func FindEnvIndex(envs []corev1.EnvVar, name string) int

func MergeEnvLists

func MergeEnvLists(envLists ...[]corev1.EnvVar) []corev1.EnvVar

func MergeMaps added in v1.16.0

func MergeMaps(dest map[string]string, mapList ...map[string]string) map[string]string

MergeMaps merges multiple maps into the provided `dest` map. If `dest` is nil, a new map is created. When keys overlap across maps, the value from the last map takes precedence. The function returns the resulting `dest` map.

func MergeTemplateAnnotations added in v1.16.0

func MergeTemplateAnnotations(sfs *appsv1.StatefulSet, annotations map[string]string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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