Uninstalling the resource specification injection webhook on the cluster

Uninstall the resource specification injection (RSI) webhook if you plan to uninstall IBM Cloud Pak® for Data or if you no longer plan to use the RSI feature to create patches.

Who needs to complete this task?
A cluster administrator must complete this task.
When do you need to complete this task?
Complete this task if one of the following statements is true:
  • You plan to uninstall all instances of IBM Cloud Pak for Data from the cluster
  • You no longer plan to use the RSI feature to create patches

Before you begin

Complete the following steps in each project (namespace) where the RSI feature is enabled:

  1. Get a list of all patches in the project:
    cpd-cli manage get-rsi-patch-info \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
    --all

    For details, see get-rsi-patch-info.

  2. Set active patches to inactive.

    Before you run the command, replace <patch-name> with the name of the patch that you want to make inactive.

    cpd-cli manage create-rsi-patch \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
    --patch_name=<patch-name> \
    --state=inactive

    For details, see create-rsi-patch.

  3. Delete the patches in the project.
    cpd-cli manage delete-rsi-patch \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
    --all

    For details, see delete-rsi-patch.

  4. Disable the RSI feature in the project:
    IBM Cloud Pak foundational services is installed in ibm-common-services
    cpd-cli manage disable-rsi \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE}

    IBM Cloud Pak foundational services is installed in project other than ibm-common-services
    cpd-cli manage disable-rsi \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
    --cs_ns=${PROJECT_CPFS_OPS}

Procedure

  1. Run the cpd-cli manage login-to-ocp command to log in to the cluster as a user with sufficient permissions to complete this task. For example:
    cpd-cli manage login-to-ocp \
    --username=${OCP_USERNAME} \
    --password=${OCP_PASSWORD} \
    --server=${OCP_URL}
    Tip: The login-to-ocp command takes the same input as the oc login command. Run oc login --help for details.
  2. Uninstall the webhook:

    The cluster pulls images from the IBM Entitled Registry
    cpd-cli manage uninstall-rsi \
    --cs_ns=${PROJECT_CPFS_OPS}

    The cluster pulls images from a private container registry
    cpd-cli manage uninstall-rsi \
    --cs_ns=${PROJECT_CPFS_OPS} \
    --rsi_image=${PRIVATE_REGISTRY_LOCATION}/cpd/zen-rsi-adm-controller:4.6.5-x86_64