diff options
author | Vincent Ambo <tazjin@gmail.com> | 2017-04-04T12·28+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2017-04-04T18·06+0200 |
commit | 11cfc80020010ff949de767698124cc5719361e0 (patch) | |
tree | c5db424c0b8b7574029d53b033b06e4baa029618 /context/testdata | |
parent | 4eadb588412af8f2028ed5a71037c45f7caff269 (diff) |
feat context: Support resource set default values
This adds functionality to specify default values directly in resource sets. The idea is that users can create a file called `values.yaml` or `values.json` in a resource set's folder and have all variables specified in that file be automatically merged into the resource set variables with the lowest priority. This fixes #25 This fixes #30 (to a degree)
Diffstat (limited to 'context/testdata')
-rw-r--r-- | context/testdata/default-loading.yaml | 6 | ||||
-rw-r--r-- | context/testdata/default/default.yaml | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/context/testdata/default-loading.yaml b/context/testdata/default-loading.yaml new file mode 100644 index 000000000000..d589c99b4eaf --- /dev/null +++ b/context/testdata/default-loading.yaml @@ -0,0 +1,6 @@ +--- +context: default-loading +include: + - name: default + values: + override: notAtAll \ No newline at end of file diff --git a/context/testdata/default/default.yaml b/context/testdata/default/default.yaml new file mode 100644 index 000000000000..0ffa3cd81f24 --- /dev/null +++ b/context/testdata/default/default.yaml @@ -0,0 +1,2 @@ +defaultValues: loaded +override: noop \ No newline at end of file |