Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach labels or annotations to the namespace of a release #4195

Open
ilya-lesikov opened this issue Feb 17, 2022 · 1 comment
Open

Attach labels or annotations to the namespace of a release #4195

ilya-lesikov opened this issue Feb 17, 2022 · 1 comment

Comments

@ilya-lesikov
Copy link
Member

Currently, the namespace user deploying to is not managed as part of a release and created before creating the release. This means there is no way to attach labels/annotations to this namespace during werf converge unless the namespace is created and configured before werf converge.

We need a way to specify labels/annotations for all werf commands that create namespaces, i.e. werf converge and werf bundle apply.

Can be achieved with --namespace-labels and --namespace-annotations cli options and deploy.namespaceLabels{} and deploy.namespaceAnnotations{} settings in werf.yaml.

@ilya-lesikov
Copy link
Member Author

Currently if you need to add some labels/annotations to the release namespace the easiest way is to kubectl label/annotate myns ... after werf converge.

Alternatively, you can do kubectl create ns myns yourself, then kubectl label/annotate, then werf converge.

We are thinking about adding something like --namespace-labels/annotations, but there are some issues with namespace locking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant