Skip to content

Ignore namespaceSelector when not watch globally #933

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

Merged
merged 4 commits into from
Jul 11, 2025

Conversation

yo-ga
Copy link
Contributor

@yo-ga yo-ga commented Jun 8, 2025

Root cause

Kubernetes Namespace is a cluster-scoped resource, not a namespaced one.
As such, it cannot be managed via Role, which only applies to namespaced resources.
To perform operations on Namespace (e.g., get, list), you must use a ClusterRole with a ClusterRoleBinding.
Using a Role alone will not grant any permission on namespaces—including read/search access.

Issue list

Fixes #862
Fixes #893

@yo-ga yo-ga marked this pull request as ready for review June 8, 2025 14:19
@msafwankarim msafwankarim merged commit 93936d1 into stakater:master Jul 11, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants