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>
pull/31841/head
Anubhav_Tyagi 3 months ago committed by GitHub
parent 13eaf7af0b
commit 94e12130a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save