fix(homepage): ensure namespace is added to svc url

This commit is contained in:
Kjeld Schouten
2023-12-23 22:33:47 +01:00
committed by GitHub
parent ae65cd5150
commit e428d6c6dd

View File

@@ -30,8 +30,9 @@
{{- if not $url -}}
{{- $svc := $svcData.name -}}
{{- $port := $svcData.port -}}
{{- $ns := printf "%s" (include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $rootCtx "objectData" $objectData "caller" "Ingress") -}}
{{- $url = printf "http://%s.svc:%s" $svc $port -}}
{{- $url = printf "http://%s.$ns.svc:%s" $svc $ns $port -}}
{{- end -}}
{{- $_ := set $objectData.annotations "gethomepage.dev/enabled" "true" -}}