gardener-attic / gardener-resource-manager

Kubernetes resource reconciliation controller capable of performing health checks for managed resources.
https://gardener.cloud
5 stars 19 forks source link

Minor improvements for the garbage collector #131

Closed rfranzke closed 3 years ago

rfranzke commented 3 years ago

How to categorize this PR?

/area robustness /kind enhancement

What this PR does / why we need it: This PR includes two minor improvements for the garbage collector:

  1. Instead of iterating over specific items directly after the LIST call, all objects are now first collected and then processed.
  2. Recently created items (younger than 10m) are not considered for garbage collection to prevent undesired race conditions.

/squash

Release note:

The garbage collector now only considers objects older than `10m`.