Skip to content

Commit b601077

Browse files
authored
Merge pull request #79235 from danielclowers/CNV-44566
CNV#44566: workloadUpdateMethods is backed up in an environment variable
2 parents 30ed34f + 438ee5a commit b601077

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/virt-preventing-workload-updates-during-eus-update.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ When you update from one Extended Update Support (EUS) version to the next, you
2020
2121
.Procedure
2222

23-
. Back up the current `workloadUpdateMethods` configuration by running the following command:
23+
. Run the following command and record the `workloadUpdateMethods` configuration:
2424
+
2525
[source,terminal,subs="attributes+"]
2626
----
27-
$ WORKLOAD_UPDATE_METHODS=$(oc get kv kubevirt-kubevirt-hyperconverged \
28-
-n {CNVNamespace} -o jsonpath='{.spec.workloadUpdateStrategy.workloadUpdateMethods}')
27+
$ oc get kv kubevirt-kubevirt-hyperconverged \
28+
-n {CNVNamespace} -o jsonpath='{.spec.workloadUpdateStrategy.workloadUpdateMethods}'
2929
----
3030

3131
. Turn off all workload update methods by running the following command:
@@ -181,12 +181,12 @@ $ oc get csv -n {CNVNamespace}
181181
+
182182
The update completes when the `VERSION` field matches the target EUS version and the `PHASE` field reads `Succeeded`.
183183

184-
. Restore the workload update methods configuration that you backed up:
184+
. Restore the `workloadUpdateMethods` configuration that you recorded from step 1 with the following command:
185185
+
186186
[source,terminal,subs="attributes+"]
187187
----
188188
$ oc patch hyperconverged kubevirt-hyperconverged -n {CNVNamespace} --type json -p \
189-
"[{\"op\":\"add\",\"path\":\"/spec/workloadUpdateStrategy/workloadUpdateMethods\", \"value\":$WORKLOAD_UPDATE_METHODS}]"
189+
"[{\"op\":\"add\",\"path\":\"/spec/workloadUpdateStrategy/workloadUpdateMethods\", \"value\":{WorkloadUpdateMethodConfig}}]"
190190
----
191191
+
192192
.Example output

0 commit comments

Comments
 (0)