Skip to content

0.20.0 [monochart] Update `envFrom`

Compare
Choose a tag to compare
@aknysh aknysh released this 16 Jul 19:06
· 18 commits to master since this release
f52c7f9

what

  • Update envFrom section in _helpers.tpl

why

  • envFrom is a list of EnvFromSource and there could be only one envFrom in a Container spec (possibly with many configMapRef and secretRef 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 and secretRef parameters into just one envFrom section