Skip to content

RBAC Migration Followup #25: Deprecate policy commands in favor of RBAC equivalents #18096

Open
@enj

Description

Add cobra.Command.Deprecated to the following commands:

  1. oc adm policy {add|remove}-{cluster-}role-{to|from}-{user|group} ---> oc {create|edit} {cluster}role{binding}
  2. oc adm policy reconcile-cluster-role-{bindings} ---> oc auth reconcile
  3. oc policy can-i ---> oc auth can-i
  4. oc adm policy remove-{user|group} ---> oc {delete|edit} rolebinding
  5. Update docs https://docs.openshift.org/latest/admin_guide/manage_rbac.html#managing-role-bindings
  6. 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

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions