From fb83c24d85b43526968e8650ee0ebfc48caee7b3 Mon Sep 17 00:00:00 2001 From: Elliot Kennedy Date: Thu, 17 Dec 2020 04:53:04 +0000 Subject: [PATCH] [#9136] - Fix variable name to explicitly state chart values Signed-off-by: Elliot Kennedy --- pkg/chartutil/coalesce.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/chartutil/coalesce.go b/pkg/chartutil/coalesce.go index 938e12bc5..1418ad50a 100644 --- a/pkg/chartutil/coalesce.go +++ b/pkg/chartutil/coalesce.go @@ -146,12 +146,12 @@ func copyMap(src map[string]interface{}) map[string]interface{} { // // Values in v will override the values in the chart. func coalesceValues(c *chart.Chart, v map[string]interface{}) { - valsCopy, err := copystructure.Copy(c.Values) + chartValsCopy, err := copystructure.Copy(c.Values) if err != nil { log.Printf("warning: could not copy values %+v. Using raw values from chart. Exception:\n%s", c.Values, err) - valsCopy = c.Values + chartValsCopy = c.Values } - for key, val := range valsCopy.(map[string]interface{}) { + for key, val := range chartValsCopy.(map[string]interface{}) { if value, ok := v[key]; ok { if value == nil { // When the YAML value is null, we remove the value's key.