Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The operator needs cluster admin permissions to be able to create other roles. If the operator has not enough permissions the creation of rules will fail with an error: ``` 2024-12-08T22:14:27Z ERROR Reconciler error {"controller": "namespacerole", "controllerGroup": "kobs.io", "controllerKind": "NamespaceRole", "NamespaceRole": {"name":"group-diablo"}, "namespace": "", "name": "group-diablo", "reconcileID": "b7d4905f-dc03-4717-9586-3f84fd8b62fb", "error": "roles.rbac.authorization.k8s.io \"group-diablo\" is forbidden: user \"system:serviceaccount:internal-developer-portal:namespacerole-operator\" (groups=[\"system:serviceaccounts\" \"system:serviceaccounts:internal-developer-portal\" \"system:authenticated\"]) is attempting to grant RBAC permissions not currently held:\n{APIGroups:[\"*\"], Resources:[\"*\"], Verbs:[\"*\"]}"} sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.2/pkg/internal/controller/controller.go:316 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.2/pkg/internal/controller/controller.go:263 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.19.2/pkg/internal/controller/controller.go:224 ```
- Loading branch information