mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-03 01:49:16 -03:00
fix mutation bug that made order of defined hosts play a role on generation
This commit is contained in:
@@ -64,16 +64,16 @@ spec:
|
||||
{{- $_ := set $h "paths" (list (dict "path" "/")) -}}
|
||||
{{- end -}}
|
||||
{{- range $p := $h.paths -}}
|
||||
{{- $svcData = (include "tc.v1.common.lib.ingress.backend.data" (dict
|
||||
{{- $newSvcData := (include "tc.v1.common.lib.ingress.backend.data" (dict
|
||||
"rootCtx" $rootCtx "svcData" $svcData "override" $p.overrideService)) | fromYaml
|
||||
}}
|
||||
- path: {{ tpl ($p.path | default "/") $rootCtx }}
|
||||
pathType: {{ tpl ($p.pathType | default "Prefix") $rootCtx }}
|
||||
backend:
|
||||
service:
|
||||
name: {{ $svcData.name }}
|
||||
name: {{ $newSvcData.name }}
|
||||
port:
|
||||
number: {{ $svcData.port }}
|
||||
number: {{ $newSvcData.port }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{/* If a certificateIssuer is defined in the whole ingress, use that */}}
|
||||
|
||||
Reference in New Issue
Block a user