Skip to content

Commit

Permalink
fix: Merge env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoya-de committed Sep 24, 2024
1 parent b387509 commit 9e442ef
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions charts/matomo/templates/cronjob-archive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ spec:
value: {{ .Values.database.dbname | quote }}
- name: MATOMO_GENERAL_SALT
value: {{ required "`.Values.salt` is not set." .Values.salt | quote }}
{{- range $key, $value := .Values.extraEnvs }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- range $key, $value := .Values.cronjobs.archive.extraEnvs }}
{{- $extraEnvs := (deepCopy .Values.extraEnvs | mergeOverwrite .Values.cronjobs.archive.extraEnvs) }}
{{- range $key, $value := $extraEnvs }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
Expand Down

0 comments on commit 9e442ef

Please sign in to comment.