@@ -59,7 +59,7 @@ Print the supported API resources on the server
59
59
oc api-resources --namespaced=false
60
60
61
61
# 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
63
63
----
64
64
65
65
@@ -290,7 +290,7 @@ Dump relevant information for debugging and diagnosis
290
290
291
291
292
292
== 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 )
294
294
295
295
.Example usage
296
296
[source,bash,options="nowrap"]
@@ -675,7 +675,7 @@ Create a cluster role
675
675
oc create clusterrole pod-reader --verb=get --resource=pods --resource-name=readablepod --resource-name=anotherpod
676
676
677
677
# 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
679
679
680
680
# Create a cluster role named "foo" with SubResource specified
681
681
oc create clusterrole foo --verb=get,list,watch --resource=pods,pods/status
@@ -947,7 +947,7 @@ Create a role with single rule
947
947
oc create role pod-reader --verb=get --resource=pods --resource-name=readablepod --resource-name=anotherpod
948
948
949
949
# 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
951
951
952
952
# Create a role named "foo" with SubResource specified
953
953
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
1230
1230
oc delete -k dir
1231
1231
1232
1232
# 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'
1234
1234
1235
1235
# Delete a pod based on the type and name in the JSON passed into stdin
1236
1236
cat pod.json | oc delete -f -
0 commit comments