mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Merge 97d78c2e8d into fcdf3854b0
This commit is contained in:
commit
626c4f46b4
3 changed files with 18 additions and 1 deletions
|
|
@ -281,7 +281,11 @@ func processImportValues(c *chart.Chart, merge bool) error {
|
|||
})
|
||||
|
||||
// get child table
|
||||
vv, err := cvals.Table(r.Name + "." + child)
|
||||
ref := r.Name + "." + child
|
||||
if child == "." {
|
||||
ref = r.Name
|
||||
}
|
||||
vv, err := cvals.Table(ref)
|
||||
if err != nil {
|
||||
slog.Warn(
|
||||
"ImportValues missing table from chart",
|
||||
|
|
|
|||
|
|
@ -213,6 +213,17 @@ func TestProcessDependencyImportValues(t *testing.T) {
|
|||
e["overridden-chartA-B.SCBextra1"] = "13"
|
||||
e["overridden-chartA-B.SC1extra6"] = "77"
|
||||
|
||||
e["all.service.name"] = "nginx"
|
||||
e["all.service.type"] = "ClusterIP"
|
||||
e["all.service.externalPort"] = "80"
|
||||
e["all.service.internalPort"] = "80"
|
||||
e["all.SC1data.SC1bool"] = "true"
|
||||
e["all.imported-chartA.SC1extra2"] = "1.337"
|
||||
e["all.overridden-chartA.SCAbool"] = "true"
|
||||
e["all.imported-chartA-B.SC1extra5"] = "tiller"
|
||||
e["all.overridden-chartA-B.SCAbool"] = "true"
|
||||
e["all.SCBexported1A.SC1extra7"] = "true"
|
||||
|
||||
// `exports` style
|
||||
e["SCBexported1B"] = "1965"
|
||||
e["SC1extra7"] = "true"
|
||||
|
|
|
|||
2
pkg/chart/v2/util/testdata/subpop/Chart.yaml
vendored
2
pkg/chart/v2/util/testdata/subpop/Chart.yaml
vendored
|
|
@ -25,6 +25,8 @@ dependencies:
|
|||
parent: .
|
||||
- SCBexported2
|
||||
- SC1exported1
|
||||
- child: .
|
||||
parent: all
|
||||
|
||||
- name: subchart2
|
||||
repository: http://localhost:10191
|
||||
|
|
|
|||
Loading…
Reference in a new issue