Closed sielaq closed 8 years ago
I like this idea. To handle duplicate definitions, how about merging (with warning output)? So files which are concatenated override for attributes which must be unique (like container), but things like healthChecks will just be added.
It would be another nice feature of
default.yaml
(which also supports macros). Enabled by additional option like
--concatenate
- multiple times, like--concatenate a.yaml --concatenate b.yaml
....It would contains common stuff for all like:
and it will be concatenated with
deploy.yaml
- with smart way - if some components already exist indeploy.yaml
- then cover thedefault.yaml
Open question is how "smart" should it be in case of common components, for ex.:
default.yaml
:deploy.yaml
:A.Should whole container be replaced ? or B Should be merged ?
In the end it would be awesome to have concatenation with multiple yaml files