Skip to content

Instantly share code, notes, and snippets.

@nrb
Created August 26, 2019 20:33
Show Gist options
  • Save nrb/c0411767dddb48c3f1de9ffae7e6b4ed to your computer and use it in GitHub Desktop.
Save nrb/c0411767dddb48c3f1de9ffae7e6b4ed to your computer and use it in GitHub Desktop.
env:
- name: VELERO_SCRATCH_DIR
value: /scratch
- name: VELERO_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
{{- if and .Values.credentials.useSecret (or (eq $provider "aws") (eq $provider "gcp")) }}
{{- if eq $provider "aws" }}
- name: AWS_SHARED_CREDENTIALS_FILE
{{- else }}
- name: GOOGLE_APPLICATION_CREDENTIALS
{{- end }}
value: /credentials/cloud
{{- end }}
{{- with .Values.configuration.extraEnvVars }}
{{- range $key, $value := . }}
- name: {{ default "none" $key }}
value: {{ default "none" $value }}
{{- end }}
{{- end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment