Skip to content

EnvFrom

Appears in

  • .Values.workload.$name.podSpec.containers.$name
  • .Values.workload.$name.podSpec.initContainers.$name

envFrom

Define envFrom for the container

Keyworkload.$name.podSpec.containers.$name.envFrom
Typelist of map
Required
Helm tpl
Default[]

Example

workload:
workload-name:
podSpec:
containers:
container-name:
envFrom: []

envFrom.secretRef

Define the secretRef

Keyworkload.$name.podSpec.containers.$name.envFrom[].secretRef
Typemap
Required
Helm tpl
Default{}

Example

workload:
workload-name:
podSpec:
containers:
container-name:
envFrom:
- secretRef: {}

envFrom.secretRef.name

Define the secret name

Keyworkload.$name.podSpec.containers.$name.envFrom[].secretRef.name
Typestring
Required
Helm tpl
Default""

Example

workload:
workload-name:
podSpec:
containers:
container-name:
envFrom:
- secretRef:
name: secret-name

envFrom.secretRef.expandObjectName

Whether to expand (adding the fullname as prefix) the secret name

Keyworkload.$name.podSpec.containers.$name.envFrom[].secretRef.expandObjectName
Typebool
Required
Helm tpl
Defaulttrue

Example

workload:
workload-name:
podSpec:
containers:
container-name:
envFrom:
- secretRef:
name: secret-name
expandObjectName: false

envFrom.configMapRef

Define the configMapRef

Keyworkload.$name.podSpec.containers.$name.envFrom[].configMapRef
Typemap
Required
Helm tpl
Default{}

Example

workload:
workload-name:
podSpec:
containers:
container-name:
envFrom:
- configMapRef: {}

envFrom.configMapRef.name

Define the configmap name

Keyworkload.$name.podSpec.containers.$name.envFrom[].configMapRef.name
Typestring
Required
Helm tpl
Default""

Example

workload:
workload-name:
podSpec:
containers:
container-name:
envFrom:
- configMapRef:
name: configmap-name

envFrom.configMapRef.expandObjectName

Whether to expand (adding the fullname as prefix) the configmap name

Keyworkload.$name.podSpec.containers.$name.envFrom[].configMapRef.expandObjectName
Typebool
Required
Helm tpl
Defaulttrue

Example

workload:
workload-name:
podSpec:
containers:
container-name:
envFrom:
- configMapRef:
name: configmap-name
expandObjectName: false

Full Examples

workload:
workload-name:
enabled: true
primary: true
podSpec:
containers:
container-name:
enabled: true
primary: true
envFrom:
- secretRef:
# This will be expanded to `fullname-secret-name`
name: secret-name
- configMapRef:
name: configmap-name
expandObjectName: false