Uninstalling the Zero Trust Workload Identity Manager {#zero-trust-manager-uninstall_{context}}
To remove the Zero Trust Workload Identity Manager from OpenShift Container Platform, uninstall the Operator and delete its related resources. This process removes the component from your cluster.
Uninstall the Zero Trust Workload Identity Manager
To remove the Zero Trust Workload Identity Manager from your cluster, uninstall the Operator using the web console. This helps you clean up resources and delete the service from your environment.
Prerequisites
- You have access to the cluster with
cluster-adminprivileges. - You have access to the OpenShift Container Platform web console.
- The Zero Trust Workload Identity Manager is installed.
Procedure
- Log in to the OpenShift Container Platform web console.
- Uninstall the Zero Trust Workload Identity Manager.
- Go to Ecosystem → Installed Operators.
- Click the Options menu next to the Zero Trust Workload Identity Manager entry, and then click Uninstall Operator.
- In the confirmation dialog, click Uninstall.
Verification
-
Verify that the Zero Trust Workload Identity Manager Operator is uninstalled.
$ oc get csv -n openshift-zero-trust-workload-identityExample outputNo resources found in openshift-zero-trust-workload-identity namespace.
Uninstall Zero Trust Workload Identity Manager resources by using the CLI
Remove Zero Trust Workload Identity Manager resources from your cluster using the CLI. This deletes the remaining operands and definitions to help ensure a clean environment after you uninstall the product.
Prerequisites
- You have access to the cluster with
cluster-adminprivileges.
Procedure
- Uninstall the operands by running each of the following commands:
- Delete the
SpireOIDCDiscoveryProvidercluster by running the following command:$ oc delete SpireOIDCDiscoveryProvider cluster - Delete the
SpiffeCSIDrivercluster by running the following command:$ oc delete SpiffeCSIDriver cluster -l - Delete the
SpireAgentcluster by running the following command:$ oc delete SpireAgent cluster - Delete the
SpireServercluster by running the following command:$ oc delete SpireServer cluster - Delete the
ZeroTrustWorkloadIdentityManagercluster by running the following command:$ oc delete ZeroTrustWorkloadIdentityManager cluster - Delete the persistent volume claim (PVC) by running the following command:
$ oc delete pvc -l=app.kubernetes.io/name=spire-server
- Delete the service by running the following command:
$ oc delete service -l=app.kubernetes.io/name=zero-trust-workload-identity-manager -n zero-trust-workload-identity-manager
- Delete the namespace by running the following command:
$ oc delete ns zero-trust-workload-identity-manager
- Delete the cluster role by running the following command:
$ oc delete clusterrole -l=app.kubernetes.io/name=zero-trust-workload-identity-manager
- Delete the admission webhook configuration by running the following command:
$ oc delete validatingwebhookconfigurations -l=app.kubernetes.io/name=zero-trust-workload-identity-manager
- Delete the
- Delete the custom resource definitions (CRDs) by running each of the following commands:
- Delete the SPIRE Server CRD by running the following command:
$ oc delete crd spireservers.operator.openshift.io
- Delete the SPIRE Agent CRD by running the following command:
$ oc delete crd spireagents.operator.openshift.io
- Delete the SPIFFEE CSI Drivers CRD by running the following command:
$ oc delete crd spiffecsidrivers.operator.openshift.io
- Delete the SPIRE OIDC Discovery Provider CRD by running the following command:
$ oc delete crd spireoidcdiscoveryproviders.operator.openshift.io
- Delete the SPIRE and SPIFFE cluster federated trust domains CRD by running the following command:
$ oc delete crd clusterfederatedtrustdomains.spire.spiffe.io
- Delete the cluster SPIFFE IDs CRD by running the following command:
$ oc delete crd clusterspiffeids.spire.spiffe.io
- Delete the SPIRE and SPIFFE cluster static entries CRD by running the following command:
$ oc delete crd clusterstaticentries.spire.spiffe.io
- Delete the Zero Trust Workload Identity Manager CRD by running the following command:
$ oc delete crd zerotrustworkloadidentitymanagers.operator.openshift.io
- Delete the SPIRE Server CRD by running the following command:
Verification
To verify that the resources have been deleted, replace each oc delete command with oc get, and then run the command. If no resources are returned, the deletion was successful.