Manually delete the custom security context constraints
You can delete the spire-spiffe-csi-driver custom SCC when the SPIFFE CSI driver is ready and its pods are using the privileged security context constraint (SCC).
-
You have upgraded Zero Trust Workload Identity Manager to 1.1.0 from the OperatorHub catalog.
-
Confirm the SPIFFE CSI driver is ready by running the following command:
$ oc get spiffecsidriver cluster -o jsonpath='{range .status.conditions[*]}{.type}={.status}{"\n"}{end}'The expected output includes
DaemonSetAvailable=TrueandReady=True. -
Confirm that the CSI
DaemonSetis available by running the following command:$ oc get ds spire-spiffe-csi-driver -n zero-trust-workload-identity-manager -
Confirm the CSI pods are running and are using the
privilegedSCC by running the following commands:$ oc get pods -n zero-trust-workload-identity-manager -l app.kubernetes.io/name=spiffe-csi-driver$ oc get pod -n zero-trust-workload-identity-manager -l app.kubernetes.io/name=spiffe-csi-driver \ -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.metadata.annotations.openshift\.io/scc}{"\n"}{end}'Every pod should show
privileged. -
After all checks have passed, delete the legacy custom SCC by running the following commands:
$ oc get scc spire-spiffe-csi-driver$ oc delete scc spire-spiffe-csi-driverIf the SCC is already absent, no action is needed.