The first article in this series is a walkthough of installing OpenShift Pipelines on OpensShift 4.x using OpenShift Pipelines Operator. During installation the operator automatically handles necessary setup for installing its payload OpenShift Pipelines. However, the user (admin) has to aid the operator for a clean removal of both the payload OpenShift Pipelines (TektonPipelines) and the operator OpenShift-Pipelines-Operator.
The clean uninstallation OpenShift-Pipelines from you OpenShift 4.x cluster involves 2 steps:
#1 Delete the instance of the OpenShift-Pipelines-Config
First we have to delete the instance of the CRD ‘config.operator.tekton.dev’ called ‘cluster’ which was created by the operator automatically during installation.
Goto Operators>Installed Operators (make sure the Namespace ‘openshift-operators’ is selected)
Click OpenShift Pipelines Operator. Then click ‘OpenShift Pipelines Config’ tab.
Delete the instance listed under Configs (name: ‘cluster’).
This can also done from terminal.
$ oc delete config.operator.tekton.dev clusterconfig.operator.tekton.dev "cluster" deleted
#2 Uninstall (unsubscribe) OpenShift Pipelines Operator
Go to Operators>OperatorHub and locate ‘OpenShift Pipelines Operator’ tile.
Click OpenShift Pipelines Operator. Then click uninstall button to completely remove OpenShift Pipelines Operator form the cluster.