Skip to content

Instantly share code, notes, and snippets.

@ibuziuk
Last active March 27, 2024 17:54
Show Gist options
  • Save ibuziuk/a98be80a6a51ae80b11c63754e046a9e to your computer and use it in GitHub Desktop.
Save ibuziuk/a98be80a6a51ae80b11c63754e046a9e to your computer and use it in GitHub Desktop.

Repairing DWO upgrade

  1. Remove the DevWorkspace Operator subscription
oc delete sub devworkspace-operator
  1. Remove the DevWorkspace Operator CSVs
oc get csv | grep devworkspace 
oc delete csv devworkspace-operator.v0.25.0 
oc delete csv devworkspace-operator.v0.26.0
  1. Re-create DevWorkspace Operator subscription with the latest version
cat <<EOF | oc apply -f -
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: devworkspace-operator
  namespace: <namespace>
spec:
  channel: fast
  name: devworkspace-operator
  source: redhat-operators
  sourceNamespace: openshift-marketplace
  installPlanApproval: Manual
  startingCSV: devworkspace-operator.v0.26.0
EOF
  1. Approve the install plan and ensure it succeeds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment