Skip to content

Commit 9c88dd5

Browse files
authored
Update nodes-pods-adjust-resources-in-place-about.adoc
Hi Team, The oc command prefix is missing in the pod resizing examples in the following OpenShift 4.20 documentation: https://docs.redhat.com/en/documentation/openshift_container_platform/4.20/html-single/nodes/index#nodes-pods-adjust-resources-in-place-about_nodes-pods-adjust-resources-in-place Current Example commands: ~~~ $ oc edit pod <pod_name> --subresource resize $ apply -f <file_name>.yaml --subresource resize $ patch pod <pod_name> --subresource resize --patch \ '{"spec":{"containers":[{"name":"pause", "resources":{"requests":{"cpu":"800m"}, "limits":{"cpu":"800m"}}}]}}' ~~~ Expected Example commands: ~~~ $ oc edit pod <pod_name> --subresource resize $ oc apply -f <file_name>.yaml --subresource resize $ oc patch pod <pod_name> --subresource resize --patch \ '{"spec":{"containers":[{"name":"pause", "resources":{"requests":{"cpu":"800m"}, "limits":{"cpu":"800m"}}}]}}' ~~~ I have created the following documentation bug as well: https://issues.redhat.com/browse/OCPBUGS-64573
1 parent 509ed43 commit 9c88dd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/nodes-pods-adjust-resources-in-place-about.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ $ oc edit pod <pod_name> --subresource resize
5050

5151
[source,terminal]
5252
----
53-
$ apply -f <file_name>.yaml --subresource resize
53+
$ oc apply -f <file_name>.yaml --subresource resize
5454
----
5555

5656
[source,terminal]
5757
----
58-
$ patch pod <pod_name> --subresource resize --patch \
58+
$ oc patch pod <pod_name> --subresource resize --patch \
5959
'{"spec":{"containers":[{"name":"pause", "resources":{"requests":{"cpu":"800m"}, "limits":{"cpu":"800m"}}}]}}'
6060
----
6161

0 commit comments

Comments
 (0)