mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
Merge pull request #81110 from openshift-cherrypick-robot/cherry-pick-79235-to-enterprise-4.17
[enterprise-4.17] CNV#44566: workloadUpdateMethods is backed up in an environment variable
This commit is contained in:
@@ -20,12 +20,12 @@ When you update from one Extended Update Support (EUS) version to the next, you
|
||||
|
||||
.Procedure
|
||||
|
||||
. Back up the current `workloadUpdateMethods` configuration by running the following command:
|
||||
. Run the following command and record the `workloadUpdateMethods` configuration:
|
||||
+
|
||||
[source,terminal,subs="attributes+"]
|
||||
----
|
||||
$ WORKLOAD_UPDATE_METHODS=$(oc get kv kubevirt-kubevirt-hyperconverged \
|
||||
-n {CNVNamespace} -o jsonpath='{.spec.workloadUpdateStrategy.workloadUpdateMethods}')
|
||||
$ oc get kv kubevirt-kubevirt-hyperconverged \
|
||||
-n {CNVNamespace} -o jsonpath='{.spec.workloadUpdateStrategy.workloadUpdateMethods}'
|
||||
----
|
||||
|
||||
. Turn off all workload update methods by running the following command:
|
||||
@@ -181,12 +181,12 @@ $ oc get csv -n {CNVNamespace}
|
||||
+
|
||||
The update completes when the `VERSION` field matches the target EUS version and the `PHASE` field reads `Succeeded`.
|
||||
|
||||
. Restore the workload update methods configuration that you backed up:
|
||||
. Restore the `workloadUpdateMethods` configuration that you recorded from step 1 with the following command:
|
||||
+
|
||||
[source,terminal,subs="attributes+"]
|
||||
----
|
||||
$ oc patch hyperconverged kubevirt-hyperconverged -n {CNVNamespace} --type json -p \
|
||||
"[{\"op\":\"add\",\"path\":\"/spec/workloadUpdateStrategy/workloadUpdateMethods\", \"value\":$WORKLOAD_UPDATE_METHODS}]"
|
||||
"[{\"op\":\"add\",\"path\":\"/spec/workloadUpdateStrategy/workloadUpdateMethods\", \"value\":{WorkloadUpdateMethodConfig}}]"
|
||||
----
|
||||
+
|
||||
.Example output
|
||||
|
||||
Reference in New Issue
Block a user