mirror of https://github.com/minio/minio.git
Merge d1d40f0972
into 83b2ad418b
This commit is contained in:
commit
d96ff19ee9
|
@ -103,6 +103,19 @@ Determine secret name.
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- 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
|
Determine name for scc role and rolebinding
|
||||||
*/}}
|
*/}}
|
||||||
|
|
|
@ -32,6 +32,7 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
|
{{- $domain := include "minio.domain" . -}}
|
||||||
{{- range .Values.consoleIngress.hosts }}
|
{{- range .Values.consoleIngress.hosts }}
|
||||||
- http:
|
- http:
|
||||||
paths:
|
paths:
|
||||||
|
@ -49,7 +50,9 @@ spec:
|
||||||
servicePort: {{ $servicePort }}
|
servicePort: {{ $servicePort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if . }}
|
{{- if . }}
|
||||||
host: {{ tpl . $ | quote }}
|
{{- $host := . }}
|
||||||
|
{{- $hostWithDomain := printf "%s%s" $host $domain }}
|
||||||
|
host: {{ $hostWithDomain | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -32,6 +32,7 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
|
{{- $domain := include "minio.domain" . -}}
|
||||||
{{- range .Values.ingress.hosts }}
|
{{- range .Values.ingress.hosts }}
|
||||||
- http:
|
- http:
|
||||||
paths:
|
paths:
|
||||||
|
@ -49,7 +50,9 @@ spec:
|
||||||
servicePort: {{ $servicePort }}
|
servicePort: {{ $servicePort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if . }}
|
{{- if . }}
|
||||||
host: {{ tpl . $ | quote }}
|
{{- $host := . }}
|
||||||
|
{{- $hostWithDomain := printf "%s%s" $host $domain }}
|
||||||
|
host: {{ $hostWithDomain | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -625,3 +625,6 @@ etcd:
|
||||||
corednsPathPrefix: ""
|
corednsPathPrefix: ""
|
||||||
clientCert: ""
|
clientCert: ""
|
||||||
clientCertKey: ""
|
clientCertKey: ""
|
||||||
|
## Provide a domain to append at the end of every host specified in the ingress hosts value
|
||||||
|
##
|
||||||
|
domain: ''
|
||||||
|
|
Loading…
Reference in New Issue