Skip to content

Commit 9f4a6ba

Browse files
committed
rhbk: fix hostname
so that it is defined if a hostname is specified regardless of ingress status
1 parent c6a3218 commit 9f4a6ba

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

charts/keycloak/templates/keycloak-ingress.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ spec:
1717
port:
1818
number: 8443
1919
rules:
20-
- host: {{ .Values.ingress.hostname | quote }}
20+
{{- if .Values.ingress.hostname }}
21+
- host: {{ .Values.ingress.hostname }}
22+
{{- end }}
2123
http:
2224
paths:
2325
- backend:

charts/keycloak/templates/keycloak.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ spec:
1515
key: username
1616
name: postgresql-db
1717
vendor: postgres
18-
{{- if .Values.ingress.enabled }}
18+
{{- if .Values.ingress.hostname }}
1919
hostname:
20-
hostname: {{ .Values.ingress.hostname | quote }}
20+
hostname: {{ .Values.ingress.hostname }}
2121
{{- end }}
2222
http:
2323
tlsSecret: keycloak-tls

0 commit comments

Comments
 (0)