Merge pull request #11 from nuwang/add_mounter_and_optional_secrets
Add support for optional secrets
This commit is contained in:
commit
e334aedd0c
1 changed files with 4 additions and 0 deletions
|
@ -5,7 +5,11 @@ metadata:
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
name: {{ .Values.secret.name }}
|
name: {{ .Values.secret.name }}
|
||||||
stringData:
|
stringData:
|
||||||
|
{{- if .Values.secret.accessKey }}
|
||||||
accessKeyID: {{ .Values.secret.accessKey }}
|
accessKeyID: {{ .Values.secret.accessKey }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.secret.secretKey }}
|
||||||
secretAccessKey: {{ .Values.secret.secretKey }}
|
secretAccessKey: {{ .Values.secret.secretKey }}
|
||||||
|
{{- end }}
|
||||||
endpoint: {{ .Values.secret.endpoint }}
|
endpoint: {{ .Values.secret.endpoint }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in a new issue