mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-05 20:41:23 -03:00
fix(homepage): ensure namespace is added to svc url
This commit is contained in:
@@ -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" -}}
|
||||
|
||||
Reference in New Issue
Block a user