From 94e12130a5a0c3db72b71a35574646a6bd903b73 Mon Sep 17 00:00:00 2001 From: Anubhav_Tyagi <76842675+AnubhavT007@users.noreply.github.com> Date: Wed, 11 Mar 2026 14:08:05 +0530 Subject: [PATCH] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Anubhav_Tyagi <76842675+AnubhavT007@users.noreply.github.com> --- pkg/chart/common/util/coalesce.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/chart/common/util/coalesce.go b/pkg/chart/common/util/coalesce.go index 9ecd046f9..7d40c0a0e 100644 --- a/pkg/chart/common/util/coalesce.go +++ b/pkg/chart/common/util/coalesce.go @@ -168,6 +168,10 @@ func coalesceGlobals(printf printFn, dest, src map[string]any, prefix string, _ printf("warning: unable to convert globals copy to Helm values type") continue } + // Ensure vv is a non-nil map so that merges into it are not lost. + if vv == nil { + vv = make(map[string]any) + } if destv, ok := dg[key]; !ok { // Here there is no merge. We're just adding. dg[key] = vv