Skip to content

feat: templating extra env from

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

Allow ExtraEnvFrom templating

Description

This merge request aims to introduce helm template support for ExtraEnvFrom inside the values.yaml file directly.

Example

In the values.yaml we can now use directly our Go Template interpreted correctly by Helm, thanks to tpl function.

extraEnvFrom:
  - secretRef:
      name: "secret-name-{{ .Release.name }}"

This yaml placed inside the values.yaml created add a item to get env available inside the secret named secret-name-production if we are in production release.

Edited by Jordan Labrosse

Merge request reports

Loading