about summary refs log tree commit diff
path: root/templater/templater.go
AgeCommit message (Collapse)AuthorFilesLines
2017-02-08 feat context: Add support for resource set collectionsVincent Ambo1-5/+5
A resource set collection is a resource set with an addition 'include' array configured. It is a short-hand for importing multiple resource sets from the same folder and for excluding/including them as a group. See https://github.com/tazjin/kontemplate/issues/9 for more information. Closes #9
2017-02-08 feat templater: Add ability to exclude resource setsVincent Ambo1-21/+47
* renamed --limit to --include (-i) * added --exclude (-e) Kontemplate users can now explicitly include and exclude certain resource sets. Excludes always override includes. Closes #11
2017-02-08 feat template: Add additional template functionsVincent Ambo1-1/+13
This adds the Go template functions from [sprig][] as well as a custom `json` function that can interpolate any data as a JSON object - very useful for adding arrays of data in JSON format into a variable: ``` certificateDomains: - oslo.pub - tazj.in annotations: acme/certificate: {{ .certificateDomains | json }} annotations: acme/certificate: ["oslo.pub", "tazj.in"] ``` [sprig]: https://godoc.org/github.com/Masterminds/sprig
2017-02-08 fix templater: Guard against empty values mapVincent Ambo1-0/+5
2017-02-08 feat main: Add proper CLI supportVincent Ambo1-20/+50
Adds a basic CLI structure with a single "run" command that takes a --file (-f) and --limit (-l) flag. --limit can be used to only output certain resource sets. Closes #4
2017-02-08 chore: Better example & gofmtVincent Ambo1-5/+4
2017-02-08 feat templater: Add initial templating supportVincent Ambo1-0/+97