Skip to content

Commit

Permalink
[Velero] Fixing restic daemonset yaml (#155)
Browse files Browse the repository at this point in the history
* Removing duplicate entry for environment variables
* Removing quotes for deployment env vars
* Updating chart version

Signed-off-by: Chotai, Nirav | RASIA <[email protected]>
  • Loading branch information
nirav-chotai authored Oct 5, 2020
1 parent c11ff88 commit 40a849b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion charts/velero/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 1.5.1
description: A Helm chart for velero
name: velero
version: 2.13.1
version: 2.13.2
home: https://github.com/vmware-tanzu/velero
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
sources:
Expand Down
4 changes: 2 additions & 2 deletions charts/velero/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ spec:
{{- end }}
{{- with .Values.configuration.extraEnvVars }}
{{- range $key, $value := . }}
- name: {{ default "none" $key | quote }}
value: {{ default "none" $value | quote }}
- name: {{ default "none" $key }}
value: {{ default "none" $value }}
{{- end }}
{{- end }}
{{- with .Values.credentials.extraEnvVars }}
Expand Down
10 changes: 2 additions & 8 deletions charts/velero/templates/restic-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,6 @@ spec:
{{- toYaml .Values.restic.extraVolumeMounts | nindent 12 }}
{{- end }}
env:
{{- with .Values.configuration.extraEnvVars }}
{{- range $key, $value := . }}
- name: {{ default "none" $key | quote }}
value: {{ default "none" $value | quote }}
{{- end }}
{{- end }}
- name: VELERO_NAMESPACE
valueFrom:
fieldRef:
Expand Down Expand Up @@ -126,8 +120,8 @@ spec:
{{- end }}
{{- with .Values.configuration.extraEnvVars }}
{{- range $key, $value := . }}
- name: {{ default "none" $key | quote }}
value: {{ default "none" $value | quote }}
- name: {{ default "none" $key }}
value: {{ default "none" $value }}
{{- end }}
{{- end }}
{{- with .Values.credentials.extraEnvVars }}
Expand Down

0 comments on commit 40a849b

Please sign in to comment.