Skip to content

Commit 6a36f4d

Browse files
authored
Merge pull request #45326 from darshan-nagaraj/OSDOCS-3605
OSDOCS-3605: Added oc adm upgrade channel command
2 parents 8425a18 + 7bfee24 commit 6a36f4d

File tree

2 files changed

+26
-23
lines changed

2 files changed

+26
-23
lines changed

modules/update-upgrading-cli.adoc

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,6 @@ NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
3737
version 4.9.23 True False 158m Cluster version is 4.9.23
3838
----
3939

40-
. Review the current update channel information and confirm that your channel
41-
is set to `stable-4.10`:
42-
+
43-
[source,terminal]
44-
----
45-
$ oc get clusterversion -o json|jq ".items[0].spec"
46-
----
47-
+
48-
.Example output
49-
[source,terminal]
50-
----
51-
{
52-
"channel": "stable-4.10",
53-
"clusterID": "990f7ab8-109b-4c95-8480-2bd1deec55ff"
54-
}
55-
----
56-
+
57-
[IMPORTANT]
58-
====
59-
For production clusters, you must subscribe to a `stable-\*` or `fast-*` channel.
60-
====
61-
6240
. View the available updates and note the version number of the update that
6341
you want to apply:
6442
+
@@ -78,6 +56,25 @@ VERSION IMAGE
7856
4.10.0 quay.io/openshift-release-dev/ocp-release@sha256:9c5f0df8b192a0d7b46cd5f6a4da2289c155fd5302dec7954f8f06c878160b8b
7957
----
8058

59+
. Based on your organization requirements, set the upgrade channel to `stable-4.10`, `fast-4.10`, or `eus-4.10`:
60+
+
61+
[source,terminal]
62+
----
63+
$ oc adm upgrade channel <channel>
64+
----
65+
+
66+
For example, to set the channel to `stable-4.10`:
67+
+
68+
[source,terminal]
69+
----
70+
$ oc adm upgrade channel stable-4.10
71+
----
72+
+
73+
[IMPORTANT]
74+
====
75+
For production clusters, you must subscribe to a `stable-\*`, `eus-*`, or `fast-*` channel.
76+
====
77+
8178
. Apply an update:
8279
** To update to the latest version:
8380
+
@@ -93,7 +90,7 @@ $ oc adm upgrade --to-latest=true <1>
9390
$ oc adm upgrade --to=<version> <1>
9491
----
9592
<1> `<version>` is the update version that you obtained from the output of the
96-
previous command.
93+
`oc adm upgrade` command.
9794

9895
. Review the status of the Cluster Version Operator:
9996
+

updating/updating-cluster-cli.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ include::modules/updating-sno.adoc[leveloffset=+1]
5454
* For information on which machine configuration changes require a reboot, see the note in xref:../architecture/control-plane.adoc#understanding-machine-config-operator_control-plane[Understanding the Machine Config Operator].
5555

5656
include::modules/update-upgrading-cli.adoc[leveloffset=+1]
57+
58+
[role="_additional-resources"]
59+
.Additional resources
60+
61+
* xref:../updating/understanding-upgrade-channels-release.adoc#understanding-upgrade-channels-releases[Understanding upgrade channels and releases]
62+
5763
include::modules/update-conditional-updates.adoc[leveloffset=+1]
5864

5965
[role="_additional-resources"]

0 commit comments

Comments
 (0)