@@ -59,7 +59,7 @@ Print the supported API resources on the server
5959 oc api-resources --namespaced=false
6060
6161 # Print the supported API resources with a specific APIGroup
62- oc api-resources --api-group=extensions
62+ oc api-resources --api-group=rbac.authorization.k8s.io
6363----
6464
6565
@@ -290,7 +290,7 @@ Dump relevant information for debugging and diagnosis
290290
291291
292292== oc completion
293- Output shell completion code for the specified shell (bash, zsh or fish )
293+ Output shell completion code for the specified shell (bash, zsh, fish, or powershell )
294294
295295.Example usage
296296[source,bash,options="nowrap"]
@@ -675,7 +675,7 @@ Create a cluster role
675675 oc create clusterrole pod-reader --verb=get --resource=pods --resource-name=readablepod --resource-name=anotherpod
676676
677677 # Create a cluster role named "foo" with API Group specified
678- oc create clusterrole foo --verb=get,list,watch --resource=rs.extensions
678+ oc create clusterrole foo --verb=get,list,watch --resource=rs.apps
679679
680680 # Create a cluster role named "foo" with SubResource specified
681681 oc create clusterrole foo --verb=get,list,watch --resource=pods,pods/status
@@ -947,7 +947,7 @@ Create a role with single rule
947947 oc create role pod-reader --verb=get --resource=pods --resource-name=readablepod --resource-name=anotherpod
948948
949949 # Create a role named "foo" with API Group specified
950- oc create role foo --verb=get,list,watch --resource=rs.extensions
950+ oc create role foo --verb=get,list,watch --resource=rs.apps
951951
952952 # Create a role named "foo" with SubResource specified
953953 oc create role foo --verb=get,list,watch --resource=pods,pods/status
@@ -1230,7 +1230,7 @@ Delete resources by file names, stdin, resources and names, or by resources and
12301230 oc delete -k dir
12311231
12321232 # Delete resources from all files that end with '.json' - i.e. expand wildcard characters in file names
1233- oc apply -f '*.json'
1233+ oc delete -f '*.json'
12341234
12351235 # Delete a pod based on the type and name in the JSON passed into stdin
12361236 cat pod.json | oc delete -f -
0 commit comments