Update common.yaml

Signed-off-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
This commit is contained in:
Kjeld Schouten
2024-05-10 16:31:40 +02:00
committed by GitHub
parent 2664313721
commit 3ef46dbeec
+12
View File
@@ -26,6 +26,15 @@
{{- end -}}
{{- end -}}
{{- $serverIngressURLHTTPS := "" -}}
{{- $host := "" -}}
{{- if .Values.ingress.main.enabled -}}
{{- with (first .Values.ingress.main.hosts) -}}
{{- $host = .host -}}
{{- $serverIngressURL = (printf "https://%v:443" .host) -}}
{{- end -}}
{{- end -}}
{{- $serverIngressURLPort := "" -}}
{{- if $host -}}
{{- if not (eq .Values.service.main.type "ClusterIP") -}}
@@ -40,6 +49,9 @@
{{- with $serverIngressURL -}}
{{- $adv = append $adv . -}}
{{- end -}}
{{- with $serverIngressURLHTTPS -}}
{{- $adv = append $adv . -}}
{{- end -}}
{{- with $serverIngressURLPort -}}
{{- $adv = append $adv . -}}
{{- end -}}