Skip to content

Instantly share code, notes, and snippets.

@rcarrata
Created November 8, 2021 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcarrata/d5a9b9c672a302bc00ec42f19d6f32cc to your computer and use it in GitHub Desktop.
Save rcarrata/d5a9b9c672a302bc00ec42f19d6f32cc to your computer and use it in GitHub Desktop.
Upgrade OCP to 4.9
#!/bin/bash
# Set up a the patch for upgrade towards 4.9 safely
# Check https://access.redhat.com/articles/6329921 for more information
oc -n openshift-config patch cm admin-acks --patch '{"data":{"ack-4.8-kube-1.22-api-removals-in-4.9":"true"}}' --type=merge
# Change the channel to the Fast 4.9 (Stable 4.9 not available at this moment
oc patch clusterversion version --type="merge" -p '{"spec":{"channel":"fast-4.9"}}'
# Upgrade towards the latest
oc adm upgrade --to-latest
# Upgrade Check
oc adm upgrade
# Upgrade Check Cluster Operators
watch -n1 oc get co
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment