Skip to content

Commit f659792

Browse files
committed
actually user s3 internal existingSecret
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
1 parent 3455494 commit f659792

File tree

1 file changed

+27
-22
lines changed

1 file changed

+27
-22
lines changed

charts/opencloud/templates/opencloud/deployment.yaml

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -293,38 +293,43 @@ spec:
293293
value: {{ if .Values.opencloud.storage.s3.external.enabled }}{{ .Values.opencloud.storage.s3.external.region | quote }}{{ else }}{{ .Values.opencloud.storage.s3.internal.region | default "default" | quote }}{{ end }}
294294
- name: STORAGE_USERS_DECOMPOSEDS3_ACCESS_KEY
295295
valueFrom:
296+
{{- if .Values.opencloud.storage.s3.external.enabled }}
296297
secretKeyRef:
297-
name: {{- if .Values.opencloud.storage.s3.external.enabled }}
298-
{{- if .Values.opencloud.storage.s3.external.existingSecret }}
299-
{{ .Values.opencloud.storage.s3.external.existingSecret }}
300-
{{- else }}
301-
{{ include "opencloud.opencloud.fullname" . }}-s3
302-
{{- end }}
298+
name: {{- if .Values.opencloud.storage.s3.external.existingSecret }}
299+
{{ .Values.opencloud.storage.s3.external.existingSecret }}
303300
{{- else }}
304-
minio
301+
{{ include "opencloud.opencloud.fullname" . }}-s3
305302
{{- end }}
306-
key: {{- if .Values.opencloud.storage.s3.external.enabled }}
307-
accessKey
308-
{{- else }}
309-
rootUser
303+
key: accessKey
304+
{{- else }}
305+
secretKeyRef:
306+
name: {{- if .Values.opencloud.storage.s3.internal.existingSecret }}
307+
{{ .Values.opencloud.storage.s3.internal.existingSecret }}
308+
{{- else }}
309+
{{ include "opencloud.minio.fullname" . }}
310310
{{- end }}
311+
key: rootUser
312+
{{- end }}
313+
311314
- name: STORAGE_USERS_DECOMPOSEDS3_SECRET_KEY
312315
valueFrom:
316+
{{- if .Values.opencloud.storage.s3.external.enabled }}
313317
secretKeyRef:
314-
name: {{- if .Values.opencloud.storage.s3.external.enabled }}
315-
{{- if .Values.opencloud.storage.s3.external.existingSecret }}
316-
{{ .Values.opencloud.storage.s3.external.existingSecret }}
317-
{{- else }}
318-
{{ include "opencloud.opencloud.fullname" . }}-s3
319-
{{- end }}
318+
name: {{- if .Values.opencloud.storage.s3.external.existingSecret }}
319+
{{ .Values.opencloud.storage.s3.external.existingSecret }}
320320
{{- else }}
321-
minio
321+
{{ include "opencloud.opencloud.fullname" . }}-s3
322322
{{- end }}
323-
key: {{- if .Values.opencloud.storage.s3.external.enabled }}
324-
secretKey
325-
{{- else }}
326-
rootPassword
323+
key: secretKey
324+
{{- else }}
325+
secretKeyRef:
326+
name: {{- if .Values.opencloud.storage.s3.internal.existingSecret }}
327+
{{- .Values.opencloud.storage.s3.internal.existingSecret }}
328+
{{- else}}
329+
{{ include "opencloud.minio.fullname" . }}
327330
{{- end }}
331+
key: rootPassword
332+
{{- end }}
328333
- name: STORAGE_USERS_DECOMPOSEDS3_BUCKET
329334
value: {{ if .Values.opencloud.storage.s3.external.enabled }}{{ .Values.opencloud.storage.s3.external.bucket | quote }}{{ else }}{{ .Values.opencloud.storage.s3.internal.bucketName | quote }}{{ end }}
330335
- name: STORAGE_USERS_DECOMPOSEDS3_CREATE_BUCKET

0 commit comments

Comments
 (0)