• Morten Torkildsen's avatar
    fix(helm): Merge nested values correctly on upgrade (#4806) · 82d01cb3
    Morten Torkildsen authored
    Upgrading a release and override existing values doesn't work as expected for nested values. Maps should be merged recursively, but currently maps are treated just like values and replaced at the top level.
    
    If the existing values are:
    ```yaml
    resources:
      requests:
        cpu: 400m
      something: else
    ```
    and an update is done with ```--set=resources.requests.cpu=500m```, it currently ends up as
    ```yaml
    resources:
      requests:
        cpu: 500m
    ```
    but it should have been
    ```yaml
    resources:
      requests:
        cpu: 500m
      something: else
    ```
    
    This PR updates the way override values are merged into the existing set of values to merge rather than replace maps.
    
    Closes: #4792
    Signed-off-by: 's avatarMorten Torkildsen <mortent@google.com>
    82d01cb3
Name
Last commit
Last update
..
testdata Loading commit data...
capabilities.go Loading commit data...
capabilities_test.go Loading commit data...
chartfile.go Loading commit data...
chartfile_test.go Loading commit data...
create.go Loading commit data...
create_test.go Loading commit data...
doc.go Loading commit data...
expand.go Loading commit data...
files.go Loading commit data...
files_test.go Loading commit data...
load.go Loading commit data...
load_test.go Loading commit data...
requirements.go Loading commit data...
requirements_test.go Loading commit data...
save.go Loading commit data...
save_test.go Loading commit data...
transform.go Loading commit data...
values.go Loading commit data...
values_test.go Loading commit data...