Skip to content

Commit

Permalink
fix: env order
Browse files Browse the repository at this point in the history
  • Loading branch information
zzswang committed Sep 5, 2024
1 parent 02a1e7f commit 064203b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions helm-chart/templates/backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ spec:
value: {{ index .Values.storage.s3 "bucket" | quote }}
- name: "S3_PREFIX"
value: {{ index .Values.storage.s3 "prefix" | quote }}

{{- end }}
{{- range $key, $value := .Values.backup.env }}
{{- $env := .Values.backup.env }}
{{- range $key := $env | keys | sortAlpha }}
- name: "{{ $key }}"
value: "{{ $value }}"
value: "{{ index $env $key }}"
{{- end }}
{{- if not (eq .Values.storage.type "s3") }}
volumeMounts:
Expand Down
5 changes: 3 additions & 2 deletions helm-chart/templates/restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ spec:
- name: "S3_PREFIX"
value: {{ index .Values.storage.s3 "prefix" | quote }}
{{- end }}
{{- range $key, $value := .Values.restore.env }}
{{- $env := .Values.backup.env }}
{{- range $key := $env | keys | sortAlpha }}
- name: "{{ $key }}"
value: "{{ $value }}"
value: "{{ index $env $key }}"
{{- end }}
{{- if not (eq .Values.storage.type "s3") }}
volumeMounts:
Expand Down

0 comments on commit 064203b

Please sign in to comment.