Skip to content

[feature request] Add --namespace and --generate-namespace flags for score-k8s generate #172

@mathieu-benoit

Description

@mathieu-benoit

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:

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgoPull requests that update Go codegood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions