Skip to content

fix: clarify coalesce warning messages#32226

Open
devShaik010 wants to merge 1 commit into
helm:mainfrom
devShaik010:fix/coalesce-warning-wording
Open

fix: clarify coalesce warning messages#32226
devShaik010 wants to merge 1 commit into
helm:mainfrom
devShaik010:fix/coalesce-warning-wording

Conversation

@devShaik010

Copy link
Copy Markdown

Summary

This PR updates Helm's coalesce warnings to use clearer wording for map value conflicts.

  • replaces "table" and "non-table" with "map" and "non-map"
  • makes the skipped-value warning more explicit
  • updates the related unit test expectations

Why

This makes the warning output easier for Helm users to understand and addresses the confusion described in the linked issue.

Testing

Could not run the package test in this environment. The local machine does not have Go installed, and the Docker daemon is not running.

Closes #11118

Signed-off-by: devShaik010 <20dpcs044hy@manuu.edu.in>
Copilot AI review requested due to automatic review settings June 16, 2026 16:13
@pull-request-size pull-request-size Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates coalescing warning messages to use “map/non-map” terminology (and include offending values) and aligns tests with the new warning text.

Changes:

  • Updated coalesceValues warning when encountering a non-table value to include the value and use “map/non-map” wording.
  • Updated coalesceTablesFullKey warnings to use “map/non-map” wording.
  • Adjusted unit tests to assert against the updated warning strings.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
pkg/chart/common/util/coalesce.go Changes user-facing warning strings emitted during values coalescing.
pkg/chart/common/util/coalesce_test.go Updates assertions to match the new warning message text.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

// the warning
if val != nil {
printf("warning: skipped value for %s.%s: Not a table.", subPrefix, key)
printf("warning: skipped value for %s.%s: expected a map, got non-map value (%v)", subPrefix, key, val)
Comment on lines +350 to +353
printf("warning: cannot overwrite map with non-map for %s (%v)", fullkey, val)
}
} else if istable(dv) && val != nil {
printf("warning: destination for %s is a table. Ignoring non-table value (%v)", fullkey, val)
printf("warning: destination for %s is a map. Ignoring non-map value (%v)", fullkey, val)
@devShaik010

Copy link
Copy Markdown
Author

Hi @TerryHowe, could you take a review when you get a chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unclear error about "table" destination

2 participants