Uninstalling the Compliance Operator
You can remove the OpenShift Compliance Operator from your cluster by using the OpenShift Container Platform web console or the CLI.
Uninstalling the OpenShift Compliance Operator from OpenShift Container Platform using the web console
To remove the Compliance Operator, you must first delete the objects in the namespace. After the objects are removed, you can remove the Operator and its namespace by deleting the openshift-compliance project.
-
Access to an OpenShift Container Platform cluster using an account with
cluster-adminpermissions. -
The OpenShift Compliance Operator must be installed.
To remove the Compliance Operator by using the OpenShift Container Platform web console:
-
Go to the Ecosystem → Installed Operators → Compliance Operator page.
-
Click All instances.
-
In All namespaces, click the Options menu
and delete all ScanSettingBinding, ComplainceSuite, ComplianceScan, and ProfileBundle objects.
-
-
Switch to the Administration → Ecosystem → Installed Operators page.
-
Click the Options menu
on the Compliance Operator entry and select Uninstall Operator.
-
Switch to the Home → Projects page.
-
Search for 'compliance'.
-
Click the Options menu
next to the openshift-compliance project, and select Delete Project.
-
Confirm the deletion by typing
openshift-compliancein the dialog box, and click Delete.
-
Uninstalling the OpenShift Compliance Operator from OpenShift Container Platform using the CLI
To remove the Compliance Operator, you must first delete the objects in the namespace. After the objects are removed, you can remove the Operator and its namespace by deleting the openshift-compliance project.
-
Access to an OpenShift Container Platform cluster using an account with
cluster-adminpermissions. -
The OpenShift Compliance Operator must be installed.
-
Delete all objects in the namespace.
-
Delete the
ScanSettingBindingobjects:$ oc delete ssb --all -n openshift-compliance -
Delete the
ScanSettingobjects:$ oc delete ss --all -n openshift-compliance -
Delete the
ComplianceSuiteobjects:$ oc delete suite --all -n openshift-compliance -
Delete the
ComplianceScanobjects:$ oc delete scan --all -n openshift-compliance -
Delete the
ProfileBundleobjects:$ oc delete profilebundle.compliance --all -n openshift-compliance
-
-
Delete the Subscription object:
$ oc delete sub --all -n openshift-compliance -
Delete the CSV object:
$ oc delete csv --all -n openshift-compliance -
Delete the project:
$ oc delete project openshift-complianceExample outputproject.project.openshift.io "openshift-compliance" deleted
-
Confirm the namespace is deleted:
$ oc get project/openshift-complianceExample outputError from server (NotFound): namespaces "openshift-compliance" not found