Just wondering if this is not supposed to work or if it's a bug.

Try to delete a clusterrole using --selector and it doesn't work:

=====

$ oc get --show-kind --show-labels clusterrole my-role
NAME                   LABELS
clusterroles/my-role   my-label-name=my-label-value

$ oc delete clusterroles --selector my-label-name=my-label-value
No resources found

$ oc get --show-kind --show-labels clusterrole my-role
NAME                   LABELS
clusterroles/my-role   my-label-name=my-label-value

=====

But if I just delete it "by name" it works:

=====

$ oc delete clusterroles my-role
clusterrole "my-role" deleted

$ oc get --show-kind --show-labels clusterrole my-role
No resources found.
Error from server: clusterrole "my-role" not found

_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to