diff options
author | Vincent Ambo <tazjin@gmail.com> | 2017-02-08T13·37+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2017-02-08T13·40+0100 |
commit | 25f2a1616caf2a05199370998223f4a64bb55f81 (patch) | |
tree | 18c0550396fa41dbf519aaa65efe980e67db24aa /main.go | |
parent | efe49de57f6757c7ae6752927029932c556e881c (diff) |
feat template: Add additional template functions
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
Diffstat (limited to 'main.go')
0 files changed, 0 insertions, 0 deletions