You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the CLI got only one and only one namespace, which is the global namespace.
It contains all the key/values that are used to populate an environment and regroups : the outputs of all the stacks that are in infrastructureTemplates, the StackParameters of every stack in infrastructureTemplates, the outputs of the externalStacks and also what is in globalParameters. Climulon takes care of raising an exception if two same keys are found, when adding a new key to the global namespace.
This implementation is rigid, and forces the use of an MCF for every environment you can have.
So if you have 3 environment (prod, stage, dev) and 10 countries, you will have 3*10 MCF files.
By having the possibility of having multiple namespaces in the MCF, and the possibility to select one when using it, all of the MCFs can be merged in a single one.
The proposed change is to have 3 namespaces :
The element namespace : will contain the keys/values for each element (stack, service and taskDef)
The environment namespace : will contain the keys/values for each environment (prod, stage, dev). environment namespace will contain multiple levels of namespaces, linked together with a parents key
The global namespace : will contain the default keys/values to fall back on, or those that are not element or environment specific
The priority of namespaces when resolving values will be the following :
Element namespace
Environment namespace (if namespace contains a parents key, resolve from its parents after resolving from it)
Global namespace
The text was updated successfully, but these errors were encountered:
Currently, the CLI got only one and only one namespace, which is the global namespace.
It contains all the key/values that are used to populate an environment and regroups : the outputs of all the stacks that are in
infrastructureTemplates
, theStackParameters
of every stack ininfrastructureTemplates
, the outputs of theexternalStacks
and also what is inglobalParameters
. Climulon takes care of raising an exception if two same keys are found, when adding a new key to the global namespace.This implementation is rigid, and forces the use of an MCF for every environment you can have.
So if you have 3 environment (prod, stage, dev) and 10 countries, you will have 3*10 MCF files.
By having the possibility of having multiple namespaces in the MCF, and the possibility to select one when using it, all of the MCFs can be merged in a single one.
The proposed change is to have 3 namespaces :
parents
keyThe priority of namespaces when resolving values will be the following :
parents
key, resolve from its parents after resolving from it)The text was updated successfully, but these errors were encountered: