From a3fa9f3696fc616024b2530f851e06ef10814393 Mon Sep 17 00:00:00 2001 From: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com> Date: Fri, 20 May 2022 17:54:43 +0530 Subject: [PATCH] Make access key and secret key optional when using iam --- deploy/helm/templates/secret.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deploy/helm/templates/secret.yaml b/deploy/helm/templates/secret.yaml index dd6a748..be7ac7d 100644 --- a/deploy/helm/templates/secret.yaml +++ b/deploy/helm/templates/secret.yaml @@ -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 -}}