feat context: Allow overriding resource set paths

Instead of always inferring the path at which files in a resource set
are located, let users override the path by specifying a `path` field.

This makes it possible to add the same resource set multiple times
with different values while still keeping distinct names for
addressability (for example when using include/exclude).

This fixes #70
This commit is contained in:
Vincent Ambo 2017-07-13 15:57:18 +02:00
parent 9d26c17f13
commit 7607f6dc0f
4 changed files with 105 additions and 5 deletions

11
context/testdata/explicit-path.yaml vendored Normal file
View file

@ -0,0 +1,11 @@
---
context: k8s.prod.mydomain.com
include:
- name: some-api-europe
path: some-api
values:
location: europe
- name: some-api-asia
path: some-api
values:
location: asia

View file

@ -0,0 +1,8 @@
---
context: k8s.prod.mydomain.com
include:
- name: parent
path: parent-path
include:
- name: child
path: child-path