Skip to content

Commit

Permalink
Fix whitespace generation in s3 secret
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasredev committed Dec 18, 2023
1 parent f06a38f commit f598e43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/openproject/templates/secret_s3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit f598e43

Please sign in to comment.