Commit 966614a 1 parent 96a81a4 commit 966614a Copy full SHA for 966614a
File tree 6 files changed +15
-6
lines changed
integration/testcases/local_chart_with_import_values
6 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,14 @@ type Requirements struct {
13
13
}
14
14
15
15
type Dependency struct {
16
- Name string `yaml:"name,omitempty"`
17
- Repository string `yaml:"repository,omitempty"`
18
- Condition string `yaml:"condition,omitempty"`
19
- Alias string `yaml:"alias,omitempty"`
20
- Version string `yaml:"version,omitempty"`
21
- ImportValues []string `yaml:"import-values,omitempty"`
16
+ Name string `yaml:"name,omitempty"`
17
+ Repository string `yaml:"repository,omitempty"`
18
+ Condition string `yaml:"condition,omitempty"`
19
+ Alias string `yaml:"alias,omitempty"`
20
+ Version string `yaml:"version,omitempty"`
21
+ // ImportValues holds the mapping of source values to parent key to be imported. Each item can be a
22
+ // string or pair of child/parent sublist items.
23
+ ImportValues []interface {} `yaml:"import-values,omitempty"`
22
24
}
23
25
24
26
type ChartDependency struct {
Original file line number Diff line number Diff line change @@ -9,3 +9,5 @@ dependencies:
9
9
version : 1.0.0
10
10
import-values :
11
11
- data
12
+ - child : data
13
+ parent : data
Original file line number Diff line number Diff line change 1
1
exports :
2
2
data :
3
3
myval : FOO
4
+
5
+ data :
6
+ myval : BAR
Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ metadata:
5
5
namespace : {{ .Release.Namespace }}
6
6
data :
7
7
foo : {{ .Values.myval }}
8
+ bar : {{ .Values.data.myval }}
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ metadata:
7
7
namespace: default
8
8
data:
9
9
foo: FOO
10
+ bar: BAR
You can’t perform that action at this time.
0 commit comments