env

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEnvironmentVariableSecret = "onepanel-default-env"
)

Variables

This section is empty.

Functions

func AddDefaultEnvVarsToContainer added in v0.8.0

func AddDefaultEnvVarsToContainer(container *corev1.Container)

func Get added in v0.16.0

func Get(key, fallback string) string

Get gets the environment variable value, or returns fallback if the environment variable does not exist

func GetEnv

func GetEnv(key, fallback string) string

GetEnv gets the environment variable value, or returns fallback if the environment variable does not exist Deprecated: use Get instead

func PrependEnvVarToContainer added in v0.8.0

func PrependEnvVarToContainer(container *corev1.Container, name, value string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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