Make access key and secret key optional when using iam

This commit is contained in:
Nuwan Goonasekera 2022-05-20 17:54:43 +05:30
parent fd5d022ca8
commit a3fa9f3696

View file

@ -5,7 +5,11 @@ metadata:
namespace: {{ .Release.Namespace }}
name: {{ .Values.secret.name }}
stringData:
{{- if .Values.secret.accessKey }}
accessKeyID: {{ .Values.secret.accessKey }}
{{- end }}
{{- if .Values.secret.secretKey }}
secretAccessKey: {{ .Values.secret.secretKey }}
{{- end }}
endpoint: {{ .Values.secret.endpoint }}
{{- end -}}