Description of problem:
When you delete a ClusterAutoscaler resource with foreground deletion, a finalizer is added to the resource that prevents the GC from removing the resource until all of its dependents are removed from the cluster.
This is currently broken and the resource is never removed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a ClusterAutoscaler
2. oc delete clusterautoscaler default --cascade=foreground
CAO fights against the GC to delete and recreate the deployment rapidly, as such the CA resource exists in perpetuity
CA resource should go away once the deployment is deleted
$ oc create -f ~/data/cao.yaml
$ oc delete clusterautoscaler default --cascade=foreground
clusterautoscaler.autoscaling.openshift.io "default" deleted
$ oc get clusterautoscaler
No resources found
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.