add-role-to-user add a cluster role instead of a role
When adding a local role to a user or a group the command tries to add a cluster role instead.
Version
Client Version: 4.17.0-202501081137.p0.gae1bd9e.assembly.stream.el9-ae1bd9e Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: 4.17.14 Kubernetes Version: v1.30.7
Steps To Reproduce
- Create a role
- oc policy add-role-to-user
Current Result
oc adm policy add-role-to-user test userTest
Warning: role 'test' not found
clusterrole.rbac.authorization.k8s.io/test added: "userTest"
Expected Result
oc adm policy add-role-to-user test userTest
role.rbac.authorization.k8s.io/test added: "userTest"
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
@openshift-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen. Mark the issue as fresh by commenting/remove-lifecycle rotten. Exclude this issue from closing again by commenting/lifecycle frozen./close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.