Skip to content
This repository has been archived by the owner on Dec 21, 2019. It is now read-only.

Support importing additional variables from files #66

Merged
merged 5 commits into from
Jul 3, 2017

Conversation

tazjin
Copy link
Owner

@tazjin tazjin commented Jun 22, 2017

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 is still missing documentation, but I may redo some parts of the documentation anyways as it was pointed out to me that the default-value functionality is non-obvious, too.

cc: @Globegitter

This implements #64

tazjin added 4 commits June 22, 2017 15:52
The logic to deserialise a structure from *either* JSON or YAML is reused several
times and can be easily extracted, which this commit does.
@tazjin tazjin force-pushed the feat/variable-imports branch from 45cc070 to da2f12f Compare June 22, 2017 15:05
@tazjin tazjin modified the milestone: v1.2.0 Jun 22, 2017
@tazjin tazjin force-pushed the feat/variable-imports branch from da2f12f to 153c4c0 Compare June 22, 2017 15:11
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.
@tazjin tazjin force-pushed the feat/variable-imports branch from 153c4c0 to e75a3bc Compare June 22, 2017 15:25
@tazjin tazjin merged commit 9d26c17 into master Jul 3, 2017
@tazjin tazjin deleted the feat/variable-imports branch July 3, 2017 12:27
tazjin added a commit that referenced this pull request Aug 22, 2017
This release comes with some new features, usability improvements and
a better build & release process.

Features:

* Documentation has been improved significantly, check out the new
  [README][] and follow the links within!
* Extra variables can now be loaded from files on disk. Simply specify
  a list of YAML/JSON files under the 'import' key in your cluster
  context file. Check out #66 for details!
* Resource set paths can now be overridden by users. By default it is
  assumed that the path to a resource set is the same as its name,
  however this is now user-controllable.
  This means the same resource set can be included multiple times
  under different names, for easier including/excluding. See #71 for
  details!
* Kontemplate is currently getting a website that is under construction
  at [kontemplate.works][] - feel free to check it out and
  [give feedback][]!

Fixes:

* Windows release binaries now have the correct filename
* Several potential warning and error messages have been improved

Release binaries are signed with GPG key `66F505681DB8F43B` which is
verified on my Github profile.

[README]: https://github.com/tazjin/kontemplate/blob/master/README.md
[kontemplate.works]: http://kontemplate.works/
[give feedback]: https://github.com/tazjin/kontemplate-website/issues
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant