Skip to content

Kubernetes: check namespace in backend config and kubeconfig#3858

Merged
un-def merged 1 commit intomasterfrom
issue_3857_deprecate_kubernetes_backend_namespace_property
May 7, 2026
Merged

Kubernetes: check namespace in backend config and kubeconfig#3858
un-def merged 1 commit intomasterfrom
issue_3857_deprecate_kubernetes_backend_namespace_property

Conversation

@un-def
Copy link
Copy Markdown
Collaborator

@un-def un-def commented May 6, 2026

The first step to deprecate and remove the backend config property.

It's still the only source of truth.

The description in the docs is updated to explain the current behavior and planned deprecation.

If it does not match the namespace from the current kubeconfig context, show a warning instructing the user to update kubeconfig.

Migration guide:

  • If the property is not set or set to default in backend config and not set or set to default in kubeconfig, default is used, no action required
  • If the property is set to ns-a in both backend config and kubeconfig, ns-a is used, no action required
  • If the property is set to ns-a in backend config and not set or set to ns-b in kubeconfig, ns-a is used, set namespace to ns-a in kubeconfig to prepare for future versions
  • In general, it's only safe to remove the property from backend config if it is equal to default, which is a default value

Part-of: #3857

The first step to deprecate and remove the backend config property.

It's still the only source of truth.

The description in the docs is updated to explain the current behavior
and planned deprecation.

If it does not match the namespace from the current kubeconfig context,
show a warning instructing the user to update kubeconfig.

Migration guide:

* If the property is not set or set to `default` in backend config
  and not set or set to `default` in kubeconfig, `default` is used,
  no action required
* If the property is set to `ns-a` in both backend config and
  kubeconfig, `ns-a` is used, no action required
* If the property is set to `ns-a` in backend config and not set or set
  to `ns-b` in kubeconfig, `ns-a` is used, set namespace to `ns-a`
  in kubeconfig to prepare for future versions
* In general, it's only safe to remove the property from backend config
  if it is equal to `default`, which is a default value

Part-of: #3857
@un-def un-def requested a review from r4victor May 6, 2026 15:33
@un-def un-def merged commit 985764b into master May 7, 2026
25 checks passed
@un-def un-def deleted the issue_3857_deprecate_kubernetes_backend_namespace_property branch May 7, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants