From 522267d0285e47fa50fc485587bf44e22b7a9c7a Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Mon, 30 Aug 2021 13:37:37 +0200 Subject: [PATCH] Fix portsList issues on common --- charts/library/common/Chart.yaml | 2 +- charts/library/common/templates/lib/chart/_values.tpl | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/library/common/Chart.yaml b/charts/library/common/Chart.yaml index 561967ca04c..dcab925c81d 100644 --- a/charts/library/common/Chart.yaml +++ b/charts/library/common/Chart.yaml @@ -18,4 +18,4 @@ maintainers: name: common sources: null type: library -version: 6.12.0 +version: 6.12.1 diff --git a/charts/library/common/templates/lib/chart/_values.tpl b/charts/library/common/templates/lib/chart/_values.tpl index f066faca534..98a189757cf 100644 --- a/charts/library/common/templates/lib/chart/_values.tpl +++ b/charts/library/common/templates/lib/chart/_values.tpl @@ -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 }}