From e428d6c6dd4544df99dadb12d4b80f96bb31c562 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Sat, 23 Dec 2023 22:33:47 +0100 Subject: [PATCH] fix(homepage): ensure namespace is added to svc url --- .../common/templates/lib/ingress/integrations/_homepage.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/common/templates/lib/ingress/integrations/_homepage.tpl b/library/common/templates/lib/ingress/integrations/_homepage.tpl index 0eb3b2c6..5331801f 100644 --- a/library/common/templates/lib/ingress/integrations/_homepage.tpl +++ b/library/common/templates/lib/ingress/integrations/_homepage.tpl @@ -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" -}}