EnvVar

data class EnvVar(val name: String, val value: String? = null, val valueFrom: EnvVarSource? = null)

EnvVar represents an environment variable present in a Container.

Constructors

Link copied to clipboard
constructor(name: String, value: String? = null, valueFrom: EnvVarSource? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Name of the environment variable. Must be a C_IDENTIFIER.

Link copied to clipboard
val value: String? = null

Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".

Link copied to clipboard
val valueFrom: EnvVarSource? = null

Source for the environment variable's value. Cannot be used if value is not empty.