diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-06-09T19·15+0200 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2018-06-09T19·23+0200 |
commit | c91cb21f70bbd4550bf216e64136816b42145392 (patch) | |
tree | 1c3a20c4a6f8fe748a085fa44de1df5a97349871 /example | |
parent | 77ca5b47cf5d40fa53204633924e8ba30a517b3f (diff) |
feat(templater): Support single-template resource sets
Supports resource sets in which the `path` is pointed at a single template file. The example has been updated with ... an example of this. This closes #81.
Diffstat (limited to 'example')
-rw-r--r-- | example/other-config.yaml | 7 | ||||
-rw-r--r-- | example/prod-cluster.yaml | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/example/other-config.yaml b/example/other-config.yaml new file mode 100644 index 000000000000..87370569c46e --- /dev/null +++ b/example/other-config.yaml @@ -0,0 +1,7 @@ +--- +apiVersion: extensions/v1beta1 +kind: ConfigMap +metadata: + name: other-config +data: + globalData: {{ .globalVar }} diff --git a/example/prod-cluster.yaml b/example/prod-cluster.yaml index dd7804f719c3..9f300a492080 100644 --- a/example/prod-cluster.yaml +++ b/example/prod-cluster.yaml @@ -3,8 +3,15 @@ context: k8s.prod.mydomain.com global: globalVar: lizards include: + # By default resource sets are included from a folder with the same + # name as the resource set's name - name: some-api values: version: 1.0-0e6884d importantFeature: true apiPort: 4567 + + # Paths can also be specified manually (and point at single template + # files!) + - name: other-config + path: other-config.yaml |