diff options
author | Vincent Ambo <tazjin@gmail.com> | 2017-02-14T18·00+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2017-02-14T18·12+0100 |
commit | 0147c3e13e741f1d2bac7f082e509222fb86ab38 (patch) | |
tree | 2dccf2eb214b2c20ab4527e386e4459c7735022c /context/testdata/parent-variables.yaml | |
parent | f81fe551bcf1baa1167ed237c7120df69cf2ddab (diff) |
feat ctx: Let sub-resource-sets inherit vars from parent
Users of kontemplate may expect variables defined on the parent resource to be inherited by children. This implements that functionality. Values defined twice are overwritten by the child's definition. Fixes #20
Diffstat (limited to 'context/testdata/parent-variables.yaml')
-rw-r--r-- | context/testdata/parent-variables.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/context/testdata/parent-variables.yaml b/context/testdata/parent-variables.yaml new file mode 100644 index 000000000000..8459fd30405b --- /dev/null +++ b/context/testdata/parent-variables.yaml @@ -0,0 +1,10 @@ +--- +context: k8s.prod.mydomain.com +include: + - name: parent + values: + foo: bar + include: + - name: child + values: + bar: baz |