Chapter 5. Uninstall
You uninstall Red Hat build of Trustee by uninstalling the Red Hat build of Trustee Operator and deleting its resources.
You perform the following tasks:
-
Delete the
KbsConfigcustom resource. - Uninstall the Red Hat build of Trustee Operator.
-
Delete the
KbsConfigcustom resource definition.
5.1. Deleting TrusteeConfig custom resources Copy linkLink copied to clipboard!
Delete a TrusteeConfig custom resource to remove Red Hat build of Trustee configuration and all autogenerated resources.
Procedure
Delete the
TrusteeConfigcustom resource by running the following command:$ oc delete trusteeconfig <name> -n trustee-operator-systemwhere
<name>is the name of yourTrusteeConfigresource.Verify that all generated resources are removed by running the following command:
$ oc get configmaps,secrets,kbsconfig -n trustee-operator-system
Verification
-
All autogenerated config maps, secrets, and the
KbsConfigcustom resource are removed. - Trustee pods are terminated.
5.2. Uninstalling the Red Hat build of Trustee Operator Copy linkLink copied to clipboard!
You uninstall the Red Hat build of Trustee Operator by using the command line.
Procedure
Delete the subscription by running the following command:
$ oc delete subscription trustee-operatorDelete the namespace by running the following command:
$ oc delete namespace trustee-operator-system