feat context: Add ability to import extra variables from files
Kontemplate context specifications can now load extra variables from YAML or JSON files by specifying a list of files (relative to the context file) under the `import` key.
This commit is contained in:
parent
68e1e48459
commit
9d26c17f13
6 changed files with 96 additions and 4 deletions
5
context/testdata/import-vars-simple.yaml
vendored
Normal file
5
context/testdata/import-vars-simple.yaml
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
context: k8s.prod.mydomain.com
|
||||
import:
|
||||
- test-vars.yaml
|
||||
include: []
|
||||
Loading…
Add table
Add a link
Reference in a new issue