used overrides copy so that lint.Run wont modify input param

Signed-off-by: Neeraj Nagure <nagureneeraj@gmail.com>
pull/12906/head
Neeraj Nagure 2 years ago
parent 833bbfa31a
commit 33c60561d3

@ -70,7 +70,11 @@ func validateValuesFile(valuesPath string, overrides map[string]interface{}) err
// We could change that. For now, though, we retain that strategy, and thus can
// coalesce tables (like reuse-values does) instead of doing the full chart
// CoalesceValues
coalescedValues := chartutil.CoalesceTables(make(map[string]interface{}, len(overrides)), overrides)
overridesCopy := make(map[string]interface{})
for key, value := range overrides {
overridesCopy[key] = value
}
coalescedValues := chartutil.CoalesceTables(make(map[string]interface{}, len(overridesCopy)), overridesCopy)
coalescedValues = chartutil.CoalesceTables(coalescedValues, values)
ext := filepath.Ext(valuesPath)

Loading…
Cancel
Save