Skip to content

Comments

[release/v2.3.x] gotohelm: support struct embedding in helmette.Unwrap#522

Merged
chrisseto merged 1 commit intorelease/v2.3.xfrom
backport/release/v2.3.x/pr-514
Mar 12, 2025
Merged

[release/v2.3.x] gotohelm: support struct embedding in helmette.Unwrap#522
chrisseto merged 1 commit intorelease/v2.3.xfrom
backport/release/v2.3.x/pr-514

Conversation

@chrisseto
Copy link
Contributor

Backport

This will backport the following commits from main to release/v2.3.x:

Questions ?

Please refer to the Backport tool documentation

Prior to this commit, `helmette.Unwrap` would incorrectly handle embedded
structs when run from go. Our usage of the `mapstructure` library was not
configured to respect struct embeddings and the previously used version wasn't
actually able to manage them in a useful way.

This commit updates `mapstructure` to the blessed fork from go-viper and
configures it to respect struct embeddings with unofficial `json:",inline"` tag
which matches the behavior of gotohelm in helm mode.

(cherry picked from commit 82ff3a1)
@chrisseto chrisseto merged commit d0d90f6 into release/v2.3.x Mar 12, 2025
13 checks passed
@chrisseto chrisseto deleted the backport/release/v2.3.x/pr-514 branch March 12, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants