redhat-developer / opencompose

OpenCompose - A higher level abstraction for Kubernetes Resource
Apache License 2.0
64 stars 12 forks source link

add a root level application identifier field #170

Open concaf opened 7 years ago

concaf commented 7 years ago

So right now, passing in multiple files does not work (#167), and we will be implementing merging of OpenCompose files https://github.com/redhat-developer/opencompose/issues/167#issuecomment-308050943 as a default behavior, but I think it would be cool to have a root level optional identifier like app or application or namespace, which allows defining the name of the larger application.

An example use case would be when we do a -

opencompose convert -f wordpress.yaml -f nginx.yaml

So, when we pass these 2 files to opencompose convert, then the service web from app: nginx and app: wordpress does NOT get merged because of different root level app identifier.

This is more for namespacing the applications in the spec itself.

Thoughts?

CC: @kadel