From f598e431d2159d89e253d59266e2a31873582a4b Mon Sep 17 00:00:00 2001 From: Lukas Reichart Date: Mon, 18 Dec 2023 12:42:17 +0100 Subject: [PATCH] Fix whitespace generation in s3 secret --- charts/openproject/templates/secret_s3.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/openproject/templates/secret_s3.yaml b/charts/openproject/templates/secret_s3.yaml index 8906b4e..6f98036 100644 --- a/charts/openproject/templates/secret_s3.yaml +++ b/charts/openproject/templates/secret_s3.yaml @@ -10,13 +10,13 @@ stringData: OPENPROJECT_ATTACHMENTS__STORAGE: fog OPENPROJECT_FOG_CREDENTIALS_PROVIDER: AWS {{ $secret := (lookup "v1" "Secret" "openproject" .Values.s3.auth.existingSecret) | default (dict "data" dict) -}} - OPENPROJECT_FOG_CREDENTIALS_AWS__ACCESS__KEY__ID: {{ + OPENPROJECT_FOG_CREDENTIALS_AWS__ACCESS__KEY__ID: {{- default .Values.s3.auth.accessKeyId (get $secret.data .Values.s3.auth.secretKeys.accessKeyId) }} - OPENPROJECT_FOG_CREDENTIALS_AWS__SECRET__ACCESS__KEY: {{ + OPENPROJECT_FOG_CREDENTIALS_AWS__SECRET__ACCESS__KEY: {{- default .Values.s3.auth.secretAccessKey (get $secret.data .Values.s3.auth.secretKeys.secretAccessKey) }} - {{- if .Values.s3.endpoint -}} + {{ if .Values.s3.endpoint -}} OPENPROJECT_FOG_CREDENTIALS_ENDPOINT: {{ .Values.s3.endpoint }} {{- end }} OPENPROJECT_FOG_DIRECTORY: {{ .Values.s3.bucketName }}