mirror of https://github.com/k3s-io/k3s
Support .d directory for k3s config file (#3162)
Configuration will be loaded from config.yaml and then config.yaml.d/*.(yaml|yml) in alphanumeric order. The merging is done by just taking the last value of a key found, so LIFO for keys. Slices are not merged but replaced. Signed-off-by: Darren Shepherd <darren@rancher.com>pull/3219/head
parent
601c4984f5
commit
a0a1071aa5
@ -0,0 +1,7 @@
|
|||||||
|
foo-bar: get-overriden
|
||||||
|
a-slice:
|
||||||
|
- 1
|
||||||
|
- "1.5"
|
||||||
|
- "2"
|
||||||
|
- ""
|
||||||
|
- three
|
@ -0,0 +1 @@
|
|||||||
|
foo-bar: ignored
|
@ -0,0 +1 @@
|
|||||||
|
foo-bar: bar-foo
|
Loading…
Reference in new issue