mirror of https://github.com/minio/minio.git
Add domain in values.yaml
This commit is contained in:
parent
42d4ab2a0a
commit
8ebf7a958e
|
@ -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
|
||||
*/}}
|
||||
|
|
|
@ -32,6 +32,7 @@ spec:
|
|||
{{- end }}
|
||||
{{- end }}
|
||||
rules:
|
||||
{{- $domain := include "minio.domain" . -}}
|
||||
{{- range .Values.consoleIngress.hosts }}
|
||||
- http:
|
||||
paths:
|
||||
|
@ -41,7 +42,7 @@ spec:
|
|||
backend:
|
||||
service:
|
||||
name: {{ $fullName }}
|
||||
port:
|
||||
port:
|
||||
number: {{ $servicePort }}
|
||||
{{- else }}
|
||||
backend:
|
||||
|
@ -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 }}
|
||||
|
|
|
@ -32,6 +32,7 @@ spec:
|
|||
{{- end }}
|
||||
{{- end }}
|
||||
rules:
|
||||
{{- $domain := include "minio.domain" . -}}
|
||||
{{- range .Values.ingress.hosts }}
|
||||
- http:
|
||||
paths:
|
||||
|
@ -41,7 +42,7 @@ spec:
|
|||
backend:
|
||||
service:
|
||||
name: {{ $fullName }}
|
||||
port:
|
||||
port:
|
||||
number: {{ $servicePort }}
|
||||
{{- else }}
|
||||
backend:
|
||||
|
@ -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 }}
|
||||
|
|
|
@ -591,3 +591,6 @@ etcd:
|
|||
corednsPathPrefix: ""
|
||||
clientCert: ""
|
||||
clientCertKey: ""
|
||||
## Provide a domain to happend at the end of every host specified in the ingress hosts value
|
||||
##
|
||||
domain: ''
|
||||
|
|
Loading…
Reference in New Issue