[stable/velero] Add VELERO_NAMESPACE env variable (#16517)

* Add VELERO_NAMESPACE env variable

This environment variable was added to Velero in
https://github.com/heptio/velero/pull/1748 and will be required for
v1.1.0

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>

* Move namespace variable out of conditional

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
This commit is contained in:
Nolan Brubaker
2019-08-21 10:18:31 -07:00
committed by Kubernetes Prow Robot
parent 0a12a05702
commit 7ac49621ca
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 1.0.0
description: A Helm chart for velero
name: velero
version: 2.1.1
version: 2.1.2
home: https://github.com/heptio/velero
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
sources:
+5
View File
@@ -92,6 +92,11 @@ spec:
- name: VELERO_SCRATCH_DIR
value: /scratch
{{- end }}
- name: VELERO_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
{{- with .Values.configuration.extraEnvVars }}
{{- range $key, $value := . }}
- name: {{ default "none" $key }}