Merge pull request #11 from nuwang/add_mounter_and_optional_secrets

Add support for optional secrets
This commit is contained in:
Vitaliy Filippov 2023-06-20 13:19:38 +03:00 committed by GitHub
commit e334aedd0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 -}}