You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using mergeOverwrite with deepCopy resolves the issue...but requires helm v2.16.0 and above deepCopy was added in sprig v2.22 which was introduced in helm v2.16.0 mergeOverwrite was added in sprig v2.18 which was introduced in helm v2.13.0
Merge two or more dictionaries into one, giving precedence from right to left, effectively overwriting values in the dest dictionary. This is a deep merge operation but not a deep copy operation. Nested objects that are merged are the same instance on both dicts. If you want a deep copy along with the merge than use the deepCopy function along with merging.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.
the
merge
function does not properly handle booleans astrue
overwritesfalse
- see helm issue 7313merge
the chart uses
merge
to mergeagent
intoadditionalAgents
to ensure they at least have the default valuesthe following boolean values are impacted:
agent.privileged
agent.alwaysPullImage
agent.TTYEnabled
test template
given:
values.yaml
expected result:
actual result:
Fix
using
mergeOverwrite
withdeepCopy
resolves the issue...but requires helm v2.16.0 and abovedeepCopy
was added in sprig v2.22 which was introduced in helm v2.16.0mergeOverwrite
was added in sprig v2.18 which was introduced in helm v2.13.0mergeOverwrite
deepCopy
test template
given:
values.yaml
expected result:
actual result:
The text was updated successfully, but these errors were encountered: