Uninstalling Data Cataloging
Steps to uninstall Data Cataloging by using command line interface.
Procedure
- Run the following command and export IBM Storage Fusion namespace as an environmental
variable.
export FUSION_NS="<Storage Fusion namespace>"
Important: Replace<Storage Fusion namespace>
with your namespace. - Run the following command to prevent catalog source creation.
oc -n ${FUSION_NS} patch fusionservicedefinition data-cataloging-service-definition --type='json' -p='[{"op": "replace", "path": "/spec/onboarding/serviceOperatorSubscription/triggerCatSrcCreate", "value":false}]'
- Run the following command to scale down prerequisite operator.
oc -n ${FUSION_NS} scale --replicas=0 deployment/isf-prereq-operator-controller-manager
- Run the following commands to delete all the Data Cataloging workload, networking and storage
resources.
oc project default oc delete project ibm-data-cataloging
- Run the following command to delete the IBM Storage Fusion
Data Cataloging service instance object.
oc -n ${FUSION_NS} delete fusionserviceinstance data-cataloging-service-instance
- Run the following command to delete the
SecurityContextConstraints
objects.Important: The SCC objects are based on their namespace, and the namespace must be included in the name of the SCC object. The default namespace isibm-data-cataloging
, but you must change it if you use a different one.oc delete securitycontextconstraints/isd-scc-ibm-data-cataloging oc delete securitycontextconstraints/ibm-data-cataloging-c-isd-scc
- Run the following command to delete the Data Cataloging
ConsoleLink
object.oc delete consolelink/data-cataloging
- Run the following command to delete Data Cataloging
CustomResourceDefinitions
from the cluster.oc delete customresourcedefinition/spectrumdiscovers.spectrum-discover.ibm.com oc delete customresourcedefinition/spectrumdiscoverapplications.spectrum-discover.ibm.com
- Run the following command to scale up prerequisite operator.
oc -n ${FUSION_NS} scale --replicas=1 deployment/isf-prereq-operator-controller-manager