You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hosting/k8s/helm/templates/validate-external-config.yaml
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,16 @@ This template will fail the Helm deployment if external config is missing for re
20
20
{{- end }}
21
21
{{- end }}
22
22
23
-
{{- if not .Values.s3.deploy }}
24
-
{{- if or (not .Values.s3.external.endpoint) (not .Values.s3.external.accessKeyId) }}
25
-
{{- fail "S3 external configuration is required when s3.deploy=false. Please provide s3.external.endpoint and s3.external.accessKeyId" }}
23
+
{{- if .Values.s3.deploy }}
24
+
{{- if and (not .Values.s3.auth.existingSecret) (not .Values.s3.auth.accessKeyId) (not .Values.s3.auth.rootUser) }}
25
+
{{- fail "S3 auth credentials are required when s3.deploy=true. Please provide either s3.auth.accessKeyId, s3.auth.existingSecret, or s3.auth.rootUser" }}
26
+
{{- end }}
27
+
{{- else }}
28
+
{{- if not .Values.s3.external.endpoint }}
29
+
{{- fail "S3 external configuration is required when s3.deploy=false. Please provide s3.external.endpoint" }}
30
+
{{- end }}
31
+
{{- if and (not .Values.s3.external.existingSecret) (not .Values.s3.external.accessKeyId) }}
32
+
{{- fail "S3 credentials are required when s3.deploy=false. Please provide either s3.external.accessKeyId or s3.external.existingSecret" }}
0 commit comments