Untethering projects from the control plane

If you remove the service instances and workloads that are running in a tethered project (namespace), you can untether the project from the IBM® Software Hub control plane. When you untether the project from the control plane, IBM Software Hub resources are removed from the project, the control plane no longer monitors the content of the project, and you cannot provision service instances into the project.

Who needs to complete this task?

Instance administrator An instance administrator can complete this task.

When do you need to complete this task?
Complete this task if the following statements are true:
  • You removed any service instances from the tethered project.
  • You plan to uninstall IBM Software Hub or you no longer need to run any IBM Software Hub software in the tethered project.

Before you begin

Best practice: You can run the commands in this task exactly as written if you set up environment variables. For instructions, see Setting up installation environment variables.

Ensure that you source the environment variables before you run the commands in this task.

To complete this task, your

Procedure

  1. Log the cpd-cli in to the Red Hat® OpenShift® Container Platform cluster:
    ${CPDM_OC_LOGIN}
    Remember: CPDM_OC_LOGIN is an alias for the cpd-cli manage login-to-ocp command.
  2. Run the following command to untether the project from the project where IBM Software Hub is installed:
    cpd-cli manage setup-tethered-ns \
    --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \
    --tethered_instance_ns=${PROJECT_CPD_INSTANCE_TETHERED} \
    --remove=true
  3. Delete the project:
    oc delete namespace ${PROJECT_CPD_INSTANCE_TETHERED} --wait=true