Fix portsList issues on common

This commit is contained in:
kjeld Schouten-Lebbing
2021-08-30 13:37:37 +02:00
parent 1096db953e
commit 522267d028
2 changed files with 6 additions and 6 deletions

View File

@@ -18,4 +18,4 @@ maintainers:
name: common
sources: null
type: library
version: 6.12.0
version: 6.12.1

View File

@@ -165,12 +165,12 @@
{{/* merge portsList with ports */}}
{{- range $index, $item := .Values.service -}}
{{- $portsDict := dict }}
{{- range $item.portsList -}}
{{- $name := ( printf "list-%s" ( $index | toString ) ) }}
{{- if $item.name }}
{{- $name = $item.name }}
{{- range $index2, $item2 := $item.portsList -}}
{{- $name := ( printf "list-%s" ( $index2 | toString ) ) }}
{{- if $item2.name }}
{{- $name = $item2.name }}
{{- end }}
{{- $_ := set $portsDict $name $item }}
{{- $_ := set $portsDict $name $item2 }}
{{- end }}
{{- $tmp := $item.ports }}
{{- $ports := merge $tmp $portsDict }}