This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.2.5.5.3. auth
检查权限并协调RBAC角色。
示例:检查当前用户是否可以读取 pod 日志
oc auth can-i get pods --subresource=log
$ oc auth can-i get pods --subresource=log
示例:从一个文件协调RBAC角色和权限
oc auth reconcile -f policy.json
$ oc auth reconcile -f policy.json