Skip to content

Instantly share code, notes, and snippets.

@ibuziuk
Last active July 4, 2023 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ibuziuk/f6260950670ffefd3b5bbfa5aec637bb to your computer and use it in GitHub Desktop.
Save ibuziuk/f6260950670ffefd3b5bbfa5aec637bb to your computer and use it in GitHub Desktop.

Repairing DWO installation

WARNING: The Standard Operating Procedure requires cluster admin persmissions.

  1. Delete the devworkspace-controller namespace which contains the failing pod (Not needed if namespace does not exist)

  2. Update DevWorkspace and DevWorkspaceTemplate CRDs by setting the conversion strategy to None:

image

spec:
  conversion:
    strategy: None # note .spec.conversion.webhook is removed here

image

NOTE: DevWorkspaceOperatorConfig and DevWorkspaceRouting CRDs have the conversion strategy set to None by default

  1. Remove the DevWorkspace Operator subscription
oc delete sub devworkspace-operator
  1. Remove the DevWorkspace Operator CSVs
❯ oc get csv | grep devworkspace
devworkspace-operator.v0.15.1                    DevWorkspace Operator   0.15.1            devworkspace-operator.v0.15.0                    Replacing
devworkspace-operator.v0.15.2                    DevWorkspace Operator   0.15.2            devworkspace-operator.v0.15.1                    Pending
oc delete csv devworkspace-operator.v0.15.1
oc delete csv devworkspace-operator.v0.15.2
  1. Re-create DevWorkspace Operator subscription
cat <<EOF | oc apply -f -
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: devworkspace-operator
  namespace: openshift-operators
spec:
  channel: fast
  name: devworkspace-operator
  source: redhat-operators
  sourceNamespace: openshift-marketplace
  installPlanApproval: Manual
  startingCSV: devworkspace-operator.v0.15.2
EOF
  1. Approve the manual install and ensure it succeeds

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment