manage remove-knative-eventing

Remove the Red Hat® OpenShift® Serverless Knative Eventing software from the cluster.

Required role
Cluster administrator You must be a cluster administrator to run this command.

Extended description

After you remove the IBM watsonx Assistant service from IBM Cloud Pak for Data, you can remove the following software on your cluster:

  • Red Hat OpenShift Serverless Operator
  • Knative Eventing Operator
  • Knative Kafka Operator
  • IBM Events Operator
  • Knative broker

The remove-knative-eventing command cleans up the resources that were created by the deploy-knative-eventing command.

Important: If you manually installed the software on your cluster, follow the Red Hat OpenShift Serverless documentation to remove the software:

Syntax

cpd-cli manage remove-knative-eventing \
[--events_operator_ns=<project name>] \
[--delete_kafka_resources=true|false] \
[--delete_openshift_serverless=true|false] \
[--delete_knative_crds=true|false] \
[--delete_provided_ibm_events_ns=true|false]

Arguments

The remove-knative-eventing command has no arguments.

Options

Table 1: Command options
Option Description
--delete_kafka_resources Delete the Kafka resources that were created by the IBM® Events Operator.

The resources include:

  • Kafka instance
  • Custom resource definitions
  • Users
  • Secrets
Status
Optional.
Syntax
--delete_kafka_resources=true|false
Default value
true

If you omit this option, the default value is used.

Valid values
false
Do not delete the Kafka resources.
true
Delete the Kafka resources,
--delete_knative_crds Delete the custom resource definitions (CRDs) that were used to create the Knative resources.
Status
Optional
Syntax
--delete_knative_crds=true|false
Default value
true

If you omit this option, the default value is used.

Valid values
false
Do not delete the CRDs.
true
Delete the CRDs.
--delete_openshift_serverless Delete the Red Hat OpenShift Serverless resources and child operators that were created by the deploy-knative-eventing command.

The resources include:

  • The serverless-operators operator group in the openshift-serverless project.
  • The serverless-operator subscription in the openshift-serverless project.
  • The openshift-serverless project.
  • The knative-eventing operator in the knative-eventing project.
  • The knative-eventing project.
Status
Optional
Syntax
--delete_openshift_serverless=true|false
Default value
true

If you omit this option, the default value is used.

Valid values
false
Do not delete the Red Hat OpenShift Serverless resources.
true
Delete the Red Hat OpenShift Serverless resources.
--delete_provided_ibm_events_ns Delete the IBM Events Operator project and the resources in the project.
Important: If you pointed to an existing cluster-scoped instance of the IBM Events Operator when you ran the deploy-knative-eventing command, do not use this option unless there is no other software using the IBM Events Operator.
Status
Optional.
Syntax
--delete_provided_ibm_events_ns=true|false
Default value
false

If you omit this option, the default value is used.

Valid values
false
Do not delete the IBM Events Operator resources and project.
true
Delete the IBM Events Operator resources and project.
--events_operator_ns The OpenShift project where the IBM Events Operator is installed.
Status
Optional.
Syntax
--events_operator_ns=<project-name>
Default value
ibm-knative-events

If you omit this option, the default value is used.

Valid values
The OpenShift project where the IBM Events Operator is installed.

Examples

Note: The following example uses the recommended installation environment variables.

It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For details, see Setting up installation environment variables.

Clean up the resources created by the deploy-knative-eventing command
cpd-cli manage remove-knative-eventing
Explicitly delete all of the resources created by the deploy-knative-eventing command when the IBM Events Operator is installed in the ibm-knative-events project
cpd-cli manage remove-knative-eventing \
--delete_kafka_resources=true \
--delete_knative_crds=true \
--delete_openshift_serverless=true \
--delete_provided_ibm_events_ns=true
Explicitly delete all of the resources created by the deploy-knative-eventing command when the IBM Events Operator is installed in a different project
cpd-cli manage remove-knative-eventing \
--delete_kafka_resources=true \
--delete_knative_crds=true \
--delete_openshift_serverless=true \
--events_operator_ns=${PROJECT_IBM_EVENTS}
--delete_provided_ibm_events_ns=true