File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ stringData:
17
17
export MINIO_ROOT_PASSWORD={{ .Values.tenant.configSecret.secretKey | quote }}
18
18
19
19
{{- else }}
20
+ {{- if eq .Values.tenant.environment "dev" }}
20
21
{{- if (.Values.tenant.configSecret.accessKey) }}
21
22
{{- fail "# ERROR: cannot set access-key when an existing secret is used" }}
22
23
{{- end }}
@@ -26,4 +27,5 @@ stringData:
26
27
{{- end }}
27
28
{{- end }}
28
29
{{- end }}
30
+ {{- end }}
29
31
Original file line number Diff line number Diff line change @@ -47,6 +47,15 @@ tenant:
47
47
# The secret is expected to have a key named config.env containing environment variables exports.
48
48
configuration :
49
49
name : myminio-env-configuration
50
+
51
+ # ##
52
+ # The environment into which this tenant will be deployed.
53
+ # Valid options:
54
+ #
55
+ # environment: dev # will presume you are using the config secret in line as shown below.
56
+ # environment: prod # will ignore the name, accessKey and secretKey fields and enforce the existing option.
57
+ environment : dev
58
+
50
59
# ##
51
60
# Root key for dynamically creating a secret for use with configuring root MinIO User
52
61
# Specify the ``name`` and then a list of environment variables.
You can’t perform that action at this time.
0 commit comments