Context: feedback and feature request captured thanks to this blog post, thanks Artem!
In order to better support the management and assignment of Namespace on Manifests generated or patched by score-k8s generate, we need to add the --namespace and --generate-namespace flags for score-k8s generate.
Like helm install|upgrade works.
--namespace (optional) will set the metadata.namespace field if supplied
--generate-namespace (optional) will actually add a default Namespace manifest in the generated manifests.yaml, --namespace will be required in this case.
We also need to think about how this --namespace value is passed through/to the provisioners and patch-templates for them to set the value if supplied.
Note: if someone wants to patch the generated Namespace, they will be able to use a patch-templates to inject annotations, labels, etc.
Implementation details:
Context: feedback and feature request captured thanks to this blog post, thanks Artem!
In order to better support the management and assignment of
Namespaceon Manifests generated or patched byscore-k8s generate, we need to add the--namespaceand--generate-namespaceflags forscore-k8s generate.Like
helm install|upgradeworks.--namespace(optional) will set themetadata.namespacefield if supplied--generate-namespace(optional) will actually add a defaultNamespacemanifest in the generatedmanifests.yaml,--namespacewill be required in this case.We also need to think about how this
--namespacevalue is passed through/to theprovisionersandpatch-templatesfor them to set the value if supplied.Note: if someone wants to patch the generated
Namespace, they will be able to use apatch-templatesto injectannotations,labels, etc.Implementation details:
--namespaceand--generate-namespaceflags forscore-k8s generate#176namespacepassed through the--patch-templates#183--namespacewithservice-accountwithscore-k8s0.5.2community-patchers#17--namespaceand--generate-namespacedocs#191--namespacefor provisioners #187score-k8s's--namespacecommunity-provisioners#40.Namespacein default provisioners #190