Uninstalling IBM Data Cataloging
Steps to uninstall IBM Data Cataloging by using command line interface.
Procedure
- Run the following command and export IBM Fusion namespace as an environmental
variable.
export FUSION_NS="<Fusion namespace>"Important: Replace<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 IBM Data Cataloging workload, networking and storage
resources.
oc project default export DCS_CR=$(oc get SpectrumDiscover -n ibm-data-cataloging -o jsonpath="{.items[*].metadata.name}") oc delete SpectrumDiscover ${DCS_CR} -n ibm-data-cataloging --timeout=2m --wait=true oc delete project ibm-data-cataloging --timeout=1m --wait=true - Run the following command to delete the IBM Fusion
IBM Data Cataloging service instance object.
oc -n ${FUSION_NS} delete fusionserviceinstance data-cataloging-service-instance - Run the following command to delete the
SecurityContextConstraintsobjects.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 IBM Data Cataloging
ConsoleLinkobject.oc delete consolelink/data-cataloging - Run the following command to delete IBM Data Cataloging
CustomResourceDefinitionsfrom 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