Chapter 2. Uninstalling OpenShift Pipelines
Cluster administrators can uninstall the Red Hat OpenShift Pipelines Operator by performing the following steps:
Delete the Custom Resources (CRs) for the optional components,
TektonHub
andTektonResult
, if these CRs exist, and then delete theTektonConfig
CR.CautionIf you uninstall the Operator without removing the CRs of optional components, you cannot remove the components later.
- Uninstall the Red Hat OpenShift Pipelines Operator.
-
Delete the Custom Resource Definitions (CRDs) of the
operator.tekton.dev
group.
Uninstalling only the Operator will not remove the Red Hat OpenShift Pipelines components created by default when the Operator is installed.
2.1. Deleting the OpenShift Pipelines Custom Resources
If the Custom Resources (CRs) for the optional components, TektonHub
and TektonResult
, exist, delete these CRs. Then delete the TektonConfig
CR.
Procedure
-
In the Administrator perspective of the web console, navigate to Administration
CustomResourceDefinitions. -
Type
TektonHub
in the Filter by name field to search for theTektonHub
Custom Resource Definition (CRD). -
Click the name of the
TektonHub
CRD to display the details page for the CRD. -
Click the
Instances
tab. - If an instance is displayed, click the Options menu for the displayed instance.
- Select Delete TektonHub.
- Click Delete to confirm the deletion of the CR.
-
Repeat these steps, searching for
TektonResult
and thenTektonConfig
in the Filter by name box. If any instances are found for these CRDs, delete these instances.
Deleting the CRs also deletes the Red Hat OpenShift Pipelines components and all the tasks and pipelines on the cluster.
If you uninstall the Operator without removing the TektonHub
and TektonResult
CRs, you cannot remove the Tekton Hub and Tekton Results components later.
2.2. Uninstalling the Red Hat OpenShift Pipelines Operator
You can uninstall the Red Hat OpenShift Pipelines Operator by using the Administrator perspective in the web console.
Procedure
-
From the Operators
OperatorHub page, use the Filter by keyword box to search for the Red Hat OpenShift Pipelines Operator. - Click the Red Hat OpenShift Pipelines Operator tile. The Operator tile indicates that the Operator is installed.
- In the Red Hat OpenShift Pipelines Operator description page, click Uninstall.
- In the Uninstall Operator? window, select Delete all operand instances for this operator, and then click Uninstall.
When you uninstall the OpenShift Pipelines Operator, all resources within the openshift-pipelines
target namespace where OpenShift Pipelines is installed are lost, including the secrets you configured.
2.3. Deleting the Custom Resource Definitions of the operator.tekton.dev
group
Delete the Custom Resource Definitions (CRDs) of the operator.tekton.dev
group. These CRDs are created by default during the installation of the Red Hat OpenShift Pipelines Operator.
Procedure
-
In the Administrator perspective of the web console, navigate to Administration
CustomResourceDefinitions. -
Type
operator.tekton.dev
in the Filter by name box to search for the CRDs in theoperator.tekton.dev
group. To delete each of the displayed CRDs, complete the following steps:
- Click the Options menu .
- Select Delete CustomResourceDefinition.
- Click Delete to confirm the deletion of the CRD.
Additional resources
- You can learn more about uninstalling Operators on OpenShift Container Platform in the deleting Operators from a cluster section.