Skip to content

admin to adm #96438

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

admin to adm #96438

wants to merge 1 commit into from

Conversation

smulje
Copy link

@smulje smulje commented Jul 22, 2025

Version(s):
4.19

Issue:
Incorrect command to assign policy via oc adm
Current Doc : https://docs.redhat.com/en/documentation/openshift_container_platform/4.19/html/storage/understanding-persistent-storage#pvc-cli-command-usage_understanding-persistent-storage:~:text=%24%20oc%20admin,2

To assign the cluster role to the user to view the PVC usage via cli

$ oc create clusterrole routes-view --verb=get,list --resource=routes
$ oc admin policy add-cluster-role-to-user routes-view <user-name>  
$ oc admin policy add-cluster-role-to-user cluster-monitoring-view <user-name> 

the correct command should be

$ oc create clusterrole routes-view --verb=get,list --resource=routes
$ oc adm policy add-cluster-role-to-user routes-view <user-name>   
$ oc adm policy add-cluster-role-to-user cluster-monitoring-view <user-name>  

QE review:

  • QE has approved this change.

Additional information:

@openshift-ci openshift-ci bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 22, 2025
Copy link

openshift-ci bot commented Jul 22, 2025

Hi @smulje. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@lpettyjo
Copy link
Contributor

For docs, LGTM.

@duanwei33
Copy link

/lgtm from QE side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch/enterprise-4.19 branch/enterprise-4.20 needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants