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.
- Version 1.33
- Version 1.34
- Version 1.35
- Version 1.36 (recommended)
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
| Option | Description |
|---|---|
--delete_kafka_resources |
Delete the Kafka resources that were created by the IBM® Events Operator. The resources include:
|
--delete_knative_crds |
Delete the custom resource definitions (CRDs) that were used to
create the Knative resources.
|
--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:
|
--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.
|
--events_operator_ns |
The OpenShift project
where the IBM Events Operator is installed.
|
Examples
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-eventingcommand -
cpd-cli manage remove-knative-eventing - Explicitly delete all of the resources created by the
deploy-knative-eventingcommand when the IBM Events Operator is installed in theibm-knative-eventsproject -
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-eventingcommand 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