Skip to content

Commit 5fbca66

Browse files
committed
Add test inventory which uses reference default value and Python test
1 parent 9fcbb4c commit 5fbca66

24 files changed

Lines changed: 299 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
parameters:
2+
_lookup_table:
3+
foo:
4+
- type: a list
5+
- type: of items
6+
bar:
7+
- type: another
8+
- type: list
9+
- type: of
10+
- type: items
11+
- type: with
12+
a_ref: ${_base_directory}/foo
13+
table: ${_lookup_table:${variant::foo}}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
parameters:
2+
class1:
3+
foo: ${class1:bar::default}
4+
foo2: ${class1:foo}
5+
qux: \${foo}
6+
qux2: ${foo::\${foo\}}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
parameters:
2+
class2:
3+
foo: ${bar::default}
4+
bar:
5+
baz:
6+
foo: foo
7+
qux:
8+
foo: foo
9+
bar: bar
10+
qux:
11+
foo: class2foo
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
parameters:
2+
_compile:
3+
jsonnet:
4+
- input_paths:
5+
- ${_base_directory}/foo.jsonnet
6+
type: jsonnet
7+
output_path: foo
8+
helm:
9+
- input_paths:
10+
- ${_base_directory}/charts/foo
11+
type: helm
12+
helm_values: ${helm_values}
13+
output_path: foo
14+
kustomize:
15+
- input_paths:
16+
- ${_base_directory}/kustomization.jsonnet
17+
type: jsonnet
18+
output_path: ${_base_directory}/kustomizations/foo
19+
- input_paths:
20+
- ${_base_directory}/kustomizations/foo/
21+
type: kustomize
22+
output_path: foo
23+
24+
compile: ${_compile:${method::jsonnet}}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
helm_values:
3+
a: a
4+
b: b
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
parameters:
2+
foo: foo
3+
bar: bar
4+
baz: baz
5+
qux:
6+
foo: qux.foo
7+
bar: qux.bar
8+
baz: qux.baz
9+
data:
10+
a: a
11+
b: a
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
parameters:
2+
data:
3+
b: b
4+
foobar:
5+
foo: ${foobar:foo::${foo}}
6+
bar: ${foobar:bar::${bar}}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
data:
3+
c: c
4+
foobar: ${foobar::${qux}}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
classes:
2+
- options.${config:option::default}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
parameters:
2+
data: a

0 commit comments

Comments
 (0)