diff --git a/stable/plex/18.0.6/templates/common.yaml b/stable/plex/18.0.6/templates/common.yaml index 7f4568886df..ee47150e01e 100644 --- a/stable/plex/18.0.6/templates/common.yaml +++ b/stable/plex/18.0.6/templates/common.yaml @@ -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 -}}