Steps to reproduce
1. Install OSC from the operator hub
2. Uninstall OSC
oc get scc sandboxed-containers-operator-scc
Error from server (NotFound): securitycontextconstraints.security.openshift.io "sandboxed-containers-operator-scc" not found
NAME PRIV CAPS SELINUX RUNASUSER FSGROUP SUPGROUP PRIORITY READONLYROOTFS VOLUMES sandboxed-containers-operator-scc false ["DAC_READ_OVERRIDE"] MustRunAs MustRunAsNonRoot RunAsAny RunAsAny <no value> false ["*"]
Leaving resources behind is bad.
Bug was found by MCO team while working on BZ 2057545.
Additional helpful info
Workaround is to manually delete the SCC after OSC was uninstalled:
oc delete scc sandboxed-containers-operator-scc
- mentioned on