``` [email protected]:~# kubectl auth can-i get pv --as michelle Warning: resour . . .

Basavraj Nilkanthe:

[email protected]:~# kubectl auth can-i get pv --as michelle
Warning: resource 'persistentvolumes' is not namespace scoped
yes
[email protected]:~# kubectl auth can-i list pv --as michelle
Warning: resource 'persistentvolumes' is not namespace scoped
yes
[email protected]:~# kubectl auth can-i create pv --as michelle
Warning: resource 'persistentvolumes' is not namespace scoped
yes

Mohamed Ayman:
For testing service account:

kubectl auth can-i
<verb> <resource>
–as=system:serviceaccount:<namespace>:<serviceaccountname>
[-n <namespace>]

Basavraj Nilkanthe:
Hello @Mohamed Ayman are you getting my question… I wanted to test scenario with clusterrole and rolebinding for user – michelle…

Anil:
created a role… and rolebinding for PV. But I thought PV was cluster wide object.