Change Coalesce to Merge

Signed-off-by: jsvk <850037+jsvk@users.noreply.github.com>
pull/13513/head
jsvk 10 months ago
parent a1af40621a
commit aee533fed8
No known key found for this signature in database
GPG Key ID: 6CB65FA571D2DF1B

@ -196,7 +196,6 @@ func TestInstall(t *testing.T) {
name: "install with schema file, extra values from yaml, with errors", name: "install with schema file, extra values from yaml, with errors",
cmd: "install schema testdata/testcharts/chart-with-schema -f testdata/testcharts/chart-with-schema/extra-values.yaml", cmd: "install schema testdata/testcharts/chart-with-schema -f testdata/testcharts/chart-with-schema/extra-values.yaml",
wantError: true, wantError: true,
golden: "output/schema-negative.txt",
}, },
// Install, values from yaml, extra values from cli, schematized with errors // Install, values from yaml, extra values from cli, schematized with errors
{ {

@ -2,11 +2,15 @@
# Source: issue-9027/charts/subchart/templates/values.yaml # Source: issue-9027/charts/subchart/templates/values.yaml
global: global:
hash: hash:
key1: null
key2: null
key3: 13 key3: 13
key4: 4 key4: 4
key5: 5 key5: 5
key6: 6 key6: 6
hash: hash:
key1: null
key2: null
key3: 13 key3: 13
key4: 4 key4: 4
key5: 5 key5: 5
@ -21,11 +25,15 @@ global:
subchart: subchart:
global: global:
hash: hash:
key1: null
key2: null
key3: 13 key3: 13
key4: 4 key4: 4
key5: 5 key5: 5
key6: 6 key6: 6
hash: hash:
key1: null
key2: null
key3: 13 key3: 13
key4: 4 key4: 4
key5: 5 key5: 5

@ -158,7 +158,7 @@ func ToRenderValuesWithSchemaValidation(chrt *chart.Chart, chrtVals map[string]i
}, },
} }
vals, err := CoalesceValues(chrt, chrtVals) vals, err := MergeValues(chrt, chrtVals)
if err != nil { if err != nil {
return top, err return top, err
} }

Loading…
Cancel
Save