Merge pull request #106 from zadjadr/zadjadr/ingress

feat: allow additionalHosts for ingress
This commit is contained in:
James W. 2024-11-24 12:27:23 -07:00 committed by GitHub
commit 01fd07172c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View File

@ -17,6 +17,9 @@ spec:
tls: tls:
- hosts: - hosts:
- {{ .Values.ingress.host | quote }} - {{ .Values.ingress.host | quote }}
{{- range .Values.ingress.additionalHosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ default (printf "%s-tls" .Release.Name) .Values.ingress.existingSecret }} secretName: {{ default (printf "%s-tls" .Release.Name) .Values.ingress.existingSecret }}
{{- end }} {{- end }}
rules: rules:
@ -30,4 +33,16 @@ spec:
name: {{ include "open-webui.name" . }} name: {{ include "open-webui.name" . }}
port: port:
name: http name: http
{{- range .Values.ingress.additionalHosts }}
- host: {{ . | quote }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ include "open-webui.name" $ }}
port:
name: http
{{- end }}
{{- end }} {{- end }}

View File

@ -57,6 +57,7 @@ ingress:
# nginx.ingress.kubernetes.io/rewrite-target: / # nginx.ingress.kubernetes.io/rewrite-target: /
annotations: {} annotations: {}
host: "" host: ""
additionalHosts: []
tls: false tls: false
existingSecret: "" existingSecret: ""
persistence: persistence: