Cleaning up foundational services version 3.x control namespace after upgrading to version 4.x

After you uninstall IBM Cloud Pak foundational services from version 3.x to 4.x, some components of the foundational services remain in the control namespace. To uninstall these components, you can download the following script from the scripts-adopter branch of the ibm-common-service-operator GitHub repository: cleanup_cp2_control.sh

Parameters:

 --oc string                                    File path to oc CLI. Default uses oc in your PATH
 -h, --help                                     Print usage information
 --enable-licensing                             Set this flag to check ibm-licensing-operator

Manual steps to check and uninstall foundational services components

Before you begin

  1. Check if all instances of IBM Cloud Pak foundational services in this cluster is upgraded to v4.x.
  2. Check if there is a cert-manager operator available in the cluster.
  3. Optional: If you installed IBM Licensing, check if it is upgraded to the v4.x version.

Uninstall steps

  1. Uninstall the namespace scope operator.

    • Delete the NamespaceScope instances.
    • Click Operators > Installed Operators > IBM NamespaceScope Operator > NamespaceScope.
    • Delete all the NamespaceScope instances.

    • Delete NamespaceScope Operator.

    • Click Operators > Installed Operators > the overflow menu icon > Uninstall Operator.
  2. Uninstall cs-webhook.

    • Delete common-service webhook.
    • Click Deployment > Search for common-service-webhook > Delete this deployment.
  3. Uninstall secret-share.

    • Delete secretshare deployment.
    • Click Deployment > Search for secretshare > Delete this deployment.

      Delete secretshare instance. Click Home > Search > Search for secretshare > Delete all the instances.

  4. Optional: Uninstall crossplane-operators

    • Click Operators > Installed Operators > IBM Crossplane Operator/IBM Crossplane Provider Operator > Configuration.
    • Delete all the Configuration instances.

    • Click Operators > Installed Operators > IBM Crossplane Operator/IBM Crossplane Provider Operator > Lock.

    • Delete all the Configuration instances.

    • Click Operators > Installed Operators > IBM Crossplane Operator/IBM Crossplane Provider Operator > ProviderConfig.

    • Delete all the ProviderConfig instances.

    • Delete IBM Crossplane/IBM Crossplane Provider Operator.

    • Click Operators > Installed Operators > the overflow menu icon > Uninstall Operator.