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:
parent
9d26c17f13
commit
7607f6dc0f
4 changed files with 105 additions and 5 deletions
11
context/testdata/explicit-path.yaml
vendored
Normal file
11
context/testdata/explicit-path.yaml
vendored
Normal 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
|
||||
8
context/testdata/explicit-subresource-path.yaml
vendored
Normal file
8
context/testdata/explicit-subresource-path.yaml
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
context: k8s.prod.mydomain.com
|
||||
include:
|
||||
- name: parent
|
||||
path: parent-path
|
||||
include:
|
||||
- name: child
|
||||
path: child-path
|
||||
Loading…
Add table
Add a link
Reference in a new issue