RBAC Migration Followup #25: Deprecate policy commands in favor of RBAC equivalents #18096
Open
Description
Add cobra.Command.Deprecated
to the following commands:
oc adm policy {add|remove}-{cluster-}role-{to|from}-{user|group}
--->
oc {create|edit} {cluster}role{binding}
oc adm policy reconcile-cluster-role-{bindings}
--->
oc auth reconcile
oc policy can-i
--->
oc auth can-i
oc adm policy remove-{user|group}
--->
oc {delete|edit} rolebinding
- Update docs https://docs.openshift.org/latest/admin_guide/manage_rbac.html#managing-role-bindings
- Update ansible playbooks to use RBAC commands instead
Deprecated
should contain a pointer to the RBAC equivalent command. The CLI completions will have to be regenerated since we do not include completions for deprecated commands.
@liggitt @deads2k any others come to mind?
cc @bparees @openshift/sig-security @juanvallejo @fabianofranz