Apply Copilot suggestion to avoid confusion in doc

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Julian Siebert <yulez@yulez.dev>
pull/31847/head
Julian Siebert 3 months ago committed by GitHub
parent 40adeadf11
commit 6a00fee7ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -216,11 +216,11 @@ Loop:
// recursively call self to process sub dependencies // recursively call self to process sub dependencies
for _, t := range cd { for _, t := range cd {
// When a dependency uses an alias, cvals[path][alias] may be missing keys // When a dependency uses an alias, cvals[path][alias] may be missing keys
// that were coalesced into cvals[originalName] by ancestor CoalesceValues // that were instead placed in cvals[t.Metadata.Name] at the current values root by
// calls (which used the original chart name, not the alias). To correct // earlier CoalesceValues calls (which coalesce against the full values tree, not the
// this, we backfill any missing keys from the top-level entry into the // path-scoped subtable). Backfill any missing keys into the path-scoped entry so
// nested path entry. The nested entry is authoritative: if a key exists // condition checks see chart defaults; path-scoped values remain authoritative and
// in both, the nested (alias-keyed) value wins. // win on conflicts.
if path != "" { if path != "" {
if pt, err := cvals.Table(strings.TrimSuffix(path, ".")); err == nil { if pt, err := cvals.Table(strings.TrimSuffix(path, ".")); err == nil {
if top, ok := cvals[t.Metadata.Name].(map[string]interface{}); ok { if top, ok := cvals[t.Metadata.Name].(map[string]interface{}); ok {

Loading…
Cancel
Save