-
Notifications
You must be signed in to change notification settings - Fork 148
Cleanup ODH Installations
Vaishnavi Hire edited this page Apr 25, 2024
·
2 revisions
There are two approaches to cleanup ODH resources-
Approach 1: Manually Delete Operands
oc delete dsc default-dsc
oc delete dsci default-dsci
Note, if DSCI or DSC are stuck after deletion, remove finalizers to proceed.
oc patch dsci/default-dsci -p '{"metadata":{"finalizers":[]}}' --type=merge
oc patch dsc/default-dsc -p '{"metadata":{"finalizers":[]}}' --type=merge
Once operands are deleted, uninstall ODH Operator
Approach 2: Add Uninstall configmap
cat <<EOF | oc create -f -
apiVersion: operators.coreos.com/v1alpha1
kind: ConfigMap
apiVersion: v1
metadata:
name: odh-uninstall
namespace: openshift-operators
labels:
api.openshift.com/addon-managed-odh-delete: 'true'
EOF
Note: This will delete the entire applications namespace(opendatahub), all operands and operator CSV.