/ocp4upc

OCP4 Upgrade Paths Checker

Primary LanguageShellGNU General Public License v3.0GPL-3.0

ocp4upc

OCP4 Upgrade Paths Checker

Description

This is a BASH script that generates a graphical output of the possible OpenShift 4 minor upgrade paths using stable and fast production-ready channels.

Usage

$ ./ocp4upc.sh
-------------------------------------------------------------------
OCP4 Upgrade Paths Checker (stable fast) v2.6

Usage:
./ocp4upc.sh source_version [arch]

Source Version:
4.x        Extract default graphs using same-minor channels, e.g. '4.2'
4.x.z      Generate upgrade paths using next-minor channels, e.g. '4.2.26'
4.x.z.     Generate upgrade paths using same-minor channels, e.g. '4.2.26.'

Arch (optional):
amd64      x86_64 (default)
s390x      IBM System/390
ppc64le    POWER8 little endian
-------------------------------------------------------------------

Example

$ ./ocp4upc.sh 4.3.19
[INFO] Checking prerequisites (curl jq dot)... [OK] 
[INFO] Errata provided (4.x.z mode), targeting '4.4' channels for upgrade path generation.
[INFO] Checking if '4.3.19' (amd64) is a valid release... [OK] 
[INFO] Result exported as 'stable-4.4_amd64_20200708.svg'
[INFO] Result exported as 'fast-4.4_amd64_20200708.svg'

fast-4.4

Dependencies

Additional notes

For more info on how to perform a minor upgrade using oc cli, please refer to this solution (subscription needed).