env

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 2 Imported by: 96

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeEnvs

func MergeEnvs(envs []corev1.EnvVar, newEnvs SetterMap) []corev1.EnvVar

MergeEnvs - merge envs

Types

type Setter

type Setter func(*corev1.EnvVar)

Setter - env setter

func DownwardAPI

func DownwardAPI(field string) Setter

DownwardAPI - set env from FieldRef->FieldPath, e.g. status.podIP

func SetValue

func SetValue(value string) Setter

SetValue - set env value

type SetterList

type SetterList []SetterPair

SetterList -

func SortSetterMapByKey

func SortSetterMapByKey(in map[string]Setter) SetterList

SortSetterMapByKey - Creates a sorted List contain key/value of a map[string]string sorted by key

func (SetterList) Len

func (p SetterList) Len() int

func (SetterList) Less

func (p SetterList) Less(i, j int) bool

func (SetterList) Swap

func (p SetterList) Swap(i, j int)

type SetterMap

type SetterMap map[string]Setter

SetterMap - env setter map

type SetterPair

type SetterPair struct {
	Key   string
	Value Setter
}

SetterPair -

Jump to

Keyboard shortcuts

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