-
Notifications
You must be signed in to change notification settings - Fork 93
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
[atlas-operator] failing to watch some namespaces blocks reconciliation for all #377
Comments
Note: some internal sensitive values were replaced atlas-operator values: mongodb-atlas-operator-crds: role/role-binding deployed via a tenant chart at namespace level: apiVersion: rbac.authorization.k8s.io/v1
apiVersion: rbac.authorization.k8s.io/v1
Everything works until one of the namespaces is listed in the "watchNamespaces" in operator values but either is missing the role/role-binding or is missing some resources in the role (when upgrading the operator version new atlas resources are supported and the operator tries to list them in every namespace) E.g. after upgrading to 2.7.0 (and atlasipaccesslists CRD added to the cluster) but the new resource not added yet in the role at some namespace(s) level, operator gets stuck trying to list that resource; at this point the reconciliation is not being done for the namespaces that have the role updated: {"level":"INFO","time":"2025-02-17T11:57:43.034Z","msg":"pkg/mod/k8s.io/client-go@v0.32.1/tools/cache/reflector.go:251: failed to list *v1.AtlasIPAccessList: atlasipaccesslists.atlas.mongodb.com is forbidden: User "system::mongodb-atlas-operator" cannot list resource "atlasipaccesslists" in API group "atlas.mongodb.com" in the namespace "namespace1""} |
thank you for the issue @mbapostol, self-assigning and checking. |
@mbapostol from what I see in the helm code the |
This is the setup:
The issue:
Wanted behaviour:
The text was updated successfully, but these errors were encountered: