This commit is contained in:
ideal-respectable-trumpet 2025-07-19 14:20:56 +03:00 committed by GitHub
commit d96ff19ee9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 26 additions and 4 deletions

View File

@ -103,6 +103,19 @@ Determine secret name.
{{- end -}}
{{- end -}}
{{/*
Determine domain for hosts
*/}}
{{- define "minio.domain" -}}
{{- if .Values.global.domain -}}
{{- printf ".%s" .Values.global.domain -}}
{{- else if .Values.domain -}}
{{- printf ".%s" .Values.domain -}}
{{- else -}}
{{- print "" -}}
{{- end -}}
{{- end -}}
{{/*
Determine name for scc role and rolebinding
*/}}

View File

@ -32,6 +32,7 @@ spec:
{{- end }}
{{- end }}
rules:
{{- $domain := include "minio.domain" . -}}
{{- range .Values.consoleIngress.hosts }}
- http:
paths:
@ -49,7 +50,9 @@ spec:
servicePort: {{ $servicePort }}
{{- end }}
{{- if . }}
host: {{ tpl . $ | quote }}
{{- $host := . }}
{{- $hostWithDomain := printf "%s%s" $host $domain }}
host: {{ $hostWithDomain | quote }}
{{- end }}
{{- end }}
{{- end }}

View File

@ -32,6 +32,7 @@ spec:
{{- end }}
{{- end }}
rules:
{{- $domain := include "minio.domain" . -}}
{{- range .Values.ingress.hosts }}
- http:
paths:
@ -49,7 +50,9 @@ spec:
servicePort: {{ $servicePort }}
{{- end }}
{{- if . }}
host: {{ tpl . $ | quote }}
{{- $host := . }}
{{- $hostWithDomain := printf "%s%s" $host $domain }}
host: {{ $hostWithDomain | quote }}
{{- end }}
{{- end }}
{{- end }}

View File

@ -625,3 +625,6 @@ etcd:
corednsPathPrefix: ""
clientCert: ""
clientCertKey: ""
## Provide a domain to append at the end of every host specified in the ingress hosts value
##
domain: ''