chore(kontemplate): Prepare kontemplate for depot-merge
This merge will not yet include moving over to buildGo.nix, as support for testing and such is not present in that library yet.
This commit is contained in:
parent
064f65dec2
commit
795a974665
52 changed files with 0 additions and 195 deletions
15
ops/kontemplate/context/testdata/collections-test.yaml
vendored
Normal file
15
ops/kontemplate/context/testdata/collections-test.yaml
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
context: k8s.prod.mydomain.com
|
||||
global:
|
||||
globalVar: lizards
|
||||
include:
|
||||
- name: some-api
|
||||
values:
|
||||
version: 1.0-0e6884d
|
||||
importantFeature: true
|
||||
apiPort: 4567
|
||||
- name: collection
|
||||
include:
|
||||
- name: nested
|
||||
values:
|
||||
lizards: good
|
||||
6
ops/kontemplate/context/testdata/default-loading.yaml
vendored
Normal file
6
ops/kontemplate/context/testdata/default-loading.yaml
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
context: default-loading
|
||||
include:
|
||||
- name: default
|
||||
values:
|
||||
override: notAtAll
|
||||
2
ops/kontemplate/context/testdata/default/default.yaml
vendored
Normal file
2
ops/kontemplate/context/testdata/default/default.yaml
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
defaultValues: loaded
|
||||
override: noop
|
||||
11
ops/kontemplate/context/testdata/explicit-path.yaml
vendored
Normal file
11
ops/kontemplate/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
ops/kontemplate/context/testdata/explicit-subresource-path.yaml
vendored
Normal file
8
ops/kontemplate/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
|
||||
10
ops/kontemplate/context/testdata/flat-test.yaml
vendored
Normal file
10
ops/kontemplate/context/testdata/flat-test.yaml
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
context: k8s.prod.mydomain.com
|
||||
global:
|
||||
globalVar: lizards
|
||||
include:
|
||||
- name: some-api
|
||||
values:
|
||||
version: 1.0-0e6884d
|
||||
importantFeature: true
|
||||
apiPort: 4567
|
||||
9
ops/kontemplate/context/testdata/flat-with-args-test.yaml
vendored
Normal file
9
ops/kontemplate/context/testdata/flat-with-args-test.yaml
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
context: k8s.prod.mydomain.com
|
||||
include:
|
||||
- name: some-api
|
||||
args:
|
||||
- --as=some-user
|
||||
- --as-group=hello:world
|
||||
- --as-banana
|
||||
- "true"
|
||||
5
ops/kontemplate/context/testdata/import-vars-simple.yaml
vendored
Normal file
5
ops/kontemplate/context/testdata/import-vars-simple.yaml
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
context: k8s.prod.mydomain.com
|
||||
import:
|
||||
- test-vars.yaml
|
||||
include: []
|
||||
15
ops/kontemplate/context/testdata/merging/context.yaml
vendored
Normal file
15
ops/kontemplate/context/testdata/merging/context.yaml
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# This context file is intended to test the merge hierarchy of
|
||||
# variables defined at different levels.
|
||||
---
|
||||
context: merging.in.kontemplate.works
|
||||
global:
|
||||
globalVar: globalVar
|
||||
includeVar: should be overridden (global)
|
||||
cliVar: should be overridden (global)
|
||||
import:
|
||||
- import-vars.yaml
|
||||
include:
|
||||
- name: resource
|
||||
values:
|
||||
includeVar: includeVar
|
||||
cliVar: should be overridden (include)
|
||||
4
ops/kontemplate/context/testdata/merging/import-vars.yaml
vendored
Normal file
4
ops/kontemplate/context/testdata/merging/import-vars.yaml
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
importVar: importVar
|
||||
globalVar: should be overridden (import)
|
||||
includeVar: should be overridden (import)
|
||||
cliVar: should be overridden (import)
|
||||
5
ops/kontemplate/context/testdata/merging/resource/default.yaml
vendored
Normal file
5
ops/kontemplate/context/testdata/merging/resource/default.yaml
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
defaultVar: defaultVar
|
||||
importVar: should be overridden (default)
|
||||
globalVar: should be overridden (default)
|
||||
includeVar: should be overridden (default)
|
||||
cliVar: should be overridden (default)
|
||||
5
ops/kontemplate/context/testdata/merging/resource/output.yaml
vendored
Normal file
5
ops/kontemplate/context/testdata/merging/resource/output.yaml
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
defaultVar: {{ .defaultVar }}
|
||||
importVar: {{ .importVar }}
|
||||
globalVar: {{ .globalVar }}
|
||||
includeVar: {{ .includeVar }}
|
||||
cliVar: {{ .cliVar }}
|
||||
10
ops/kontemplate/context/testdata/parent-variable-override.yaml
vendored
Normal file
10
ops/kontemplate/context/testdata/parent-variable-override.yaml
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
context: k8s.prod.mydomain.com
|
||||
include:
|
||||
- name: parent
|
||||
values:
|
||||
foo: bar
|
||||
include:
|
||||
- name: child
|
||||
values:
|
||||
foo: newvalue
|
||||
10
ops/kontemplate/context/testdata/parent-variables.yaml
vendored
Normal file
10
ops/kontemplate/context/testdata/parent-variables.yaml
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
context: k8s.prod.mydomain.com
|
||||
include:
|
||||
- name: parent
|
||||
values:
|
||||
foo: bar
|
||||
include:
|
||||
- name: child
|
||||
values:
|
||||
bar: baz
|
||||
3
ops/kontemplate/context/testdata/test-vars-override.yaml
vendored
Normal file
3
ops/kontemplate/context/testdata/test-vars-override.yaml
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
override: 3
|
||||
place: Oslo
|
||||
5
ops/kontemplate/context/testdata/test-vars.yaml
vendored
Normal file
5
ops/kontemplate/context/testdata/test-vars.yaml
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
override: 'true'
|
||||
music:
|
||||
artist: Pallida
|
||||
track: Tractor Beam
|
||||
Loading…
Add table
Add a link
Reference in a new issue