You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Asymmetry in PolicyBinding naming upon creation and deletion #13549
The actual name of the PolicyBinding object is $PROJECTNAME:$POLICYBINDINGNAME:default, as can be seen with:
$ oc get policybinding
NAME ROLE BINDINGS LAST MODIFIED
:default admin, system:deployers, system:image-builders, system:image-pullers 2017-03-27 15:56:53 +0200 CEST
my_policybinding:default 0001-01-01 00:00:00 +0000 UTC
However, if I want to delete that PolicyBinding, I need to specify the name with :$POLICYBINDINGNAME:default (note the extra :default suffix).
It seems to me that both commands expect the same object (PolicyBinding) in an inconsistent way, ie: $POLICYBINDINGNAME for creation vs $POLICYBINDINGNAME:default for deletion.
Also, note that oc describe policybinding accepts both $PROJECTNAME:$POLICYBINDINGNAME:default and $PROJECTNAME:$POLICYBINDINGNAME
Thus, I suggest to make both calls consistent by:
Having to specify :default when creating the PolicyBinding, or
Activity
Merge pull request #15021 from simo5/RBAC1