6d8214bfc8
Introduces a test which will merge variables defined at every possible layer together and ensure that the loaded context configuration is as expected. The test data provides an actual resource set template that can be tested locally from a kontemplate source checkout: kontemplate template context/testdata/merging/context.yaml --var cliVar=cliVar
15 lines
404 B
YAML
15 lines
404 B
YAML
# This context file is intended to test the merge hierarchy of
|
|
# variables defined at different levels.
|
|
---
|
|
context: merging.in.kontemplate.works
|
|
global:
|
|
globalVar: globalVar
|
|
includeVar: should be overridden (global)
|
|
cliVar: should be overridden (global)
|
|
import:
|
|
- import-vars.yaml
|
|
include:
|
|
- name: resource
|
|
values:
|
|
includeVar: includeVar
|
|
cliVar: should be overridden (include)
|