-
Bug
-
Resolution: Done
-
Minor
-
DO280 - OCP4.12-en-1-20230329
-
en-US (English)
-
DO280 Sprint 2
URL: https://rol.redhat.com/rol/app/courses/do280-4.12/pages/ch02s04
Reporter RHNID: ctiwary@redhat.com
Section: 4 - Guided Exercise: Define and Apply Permissions with RBAC
Language: en-US (English)
Workaround:
Description: ch02s04: oc get clusterrolebinding -o wide | grep -E 'NAME|self-provisioner is used .
There is no difference between using NAME|self-provisioner and ROLE|self-provisioner in the grep command. The grep command will match any line that contains the string "ROLE" or the string "self-provisioner". So, both commands will return the same output.
However, it is more common to use ROLE|self-provisioner because it is more specific. The NAME field in the output of the oc get clusterrolebinding -o wide command contains the name of the cluster role binding. The ROLES field in the output contains the names of the roles that are being bound to the subject. So, the ROLE|self-provisioner regular expression will only match lines that contain the string "ROLE" or the string "self-provisioner" in the ROLES field.
Using a more specific regular expression will help to avoid false positives. In this case, a false positive would be a line that contains the string "ROLE" or the string "self-provisioner" in the NAME field but not in the ROLES field.