From f9f53af44891dcb270cc727aec1aa08d3ecf6b3e Mon Sep 17 00:00:00 2001 From: Navaneetha Senthilkumar <115610559+navaneethas@users.noreply.github.com> Date: Mon, 3 Nov 2025 13:01:19 +0530 Subject: [PATCH] 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 --subresource resize $ apply -f .yaml --subresource resize $ patch pod --subresource resize --patch \ '{"spec":{"containers":[{"name":"pause", "resources":{"requests":{"cpu":"800m"}, "limits":{"cpu":"800m"}}}]}}' ~~~ Expected Example commands: ~~~ $ oc edit pod --subresource resize $ oc apply -f .yaml --subresource resize $ oc patch pod --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 --- modules/nodes-pods-adjust-resources-in-place-about.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nodes-pods-adjust-resources-in-place-about.adoc b/modules/nodes-pods-adjust-resources-in-place-about.adoc index d1e4e11d4e00..912949b1a2ff 100644 --- a/modules/nodes-pods-adjust-resources-in-place-about.adoc +++ b/modules/nodes-pods-adjust-resources-in-place-about.adoc @@ -50,12 +50,12 @@ $ oc edit pod --subresource resize [source,terminal] ---- -$ apply -f .yaml --subresource resize +$ oc apply -f .yaml --subresource resize ---- [source,terminal] ---- -$ patch pod --subresource resize --patch \ +$ oc patch pod --subresource resize --patch \ '{"spec":{"containers":[{"name":"pause", "resources":{"requests":{"cpu":"800m"}, "limits":{"cpu":"800m"}}}]}}' ----