0.20.0 [monochart] Update `envFrom`
what
- Update
envFrom
section in_helpers.tpl
why
envFrom
is a list ofEnvFromSource
and there could be only oneenvFrom
in a Container spec (possibly with manyconfigMapRef
andsecretRef
parameters)- The current implementation creates two
envFrom
sections, which is not correct behavior and will fail if we use these two configs at the same time:
envFrom:
secrets:
- secret-1
configMaps:
- config-1
and
secrets:
default:
enabled: true
mountPath: /secret-default
annotations:
test.secret.annotation: value
labels:
test_label: value
env:
SECRET_ENV_NAME: ENV_VALUE
files:
secret.test.txt: |-
some text
- This update puts all
configMapRef
andsecretRef
parameters into just oneenvFrom
section