Skip to content

Commit

Permalink
Add tenant.features.bucketDNS and tenant.features.domains to tenant h…
Browse files Browse the repository at this point in the history
…elm chart (#1193)

Signed-off-by: dnskr <[email protected]>
  • Loading branch information
dnskr authored Jul 12, 2022
1 parent 1bea52c commit d16bd06
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
11 changes: 9 additions & 2 deletions helm/tenant/templates/tenant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,15 @@ spec:
{{- toYaml . | nindent 6 }}
{{- end }}
requestAutoCert: {{ dig "certificate" "requestAutoCert" false . }}
s3:
bucketDNS: {{ dig "s3" "bucketDNS" false . }}
{{- if dig "s3" "bucketDNS" false . }}
{{- fail "Value 'tenant.s3.bucketDNS' is deprecated since Operator v4.3.2, use 'tenant.features.bucketDNS' instead" }}
{{- end }}
features:
bucketDNS: {{ dig "features" "bucketDNS" false . }}
{{- with (dig "features" "domains" (dict) .) }}
domains:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with (dig "buckets" (list) .) }}
buckets:
{{- toYaml . | nindent 4 }}
Expand Down
8 changes: 4 additions & 4 deletions helm/tenant/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ tenant:
## for the auto-generated certificate. Internal DNS name for the pod will be used if CommonName is
## not provided. DNS name format is *.minio.default.svc.cluster.local
certConfig: { }
## Enable S3 specific features such as Bucket DNS which would allow `buckets` to be
## accessible as DNS entries of form `<bucketname>.minio.default.svc.cluster.local`
s3:
## This feature is turned off by default
## MinIO features to enable or disable in the MinIO Tenant
## https://github.com/minio/operator/blob/master/docs/crd.adoc#features
features:
bucketDNS: false
domains: { }
## List of bucket names to create during tenant provisioning
buckets: [ ]
## List of secret names to use for generating MinIO users during tenant provisioning
Expand Down

0 comments on commit d16bd06

Please sign in to comment.