Uninstalling 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.
-
You have access to the cluster with
cluster-adminprivileges.
-
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 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
-
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.