mirror of
https://github.com/rancher/norman.git
synced 2025-08-31 14:51:57 +00:00
Problem: Cluster scoped gc was taking significantly longer to complete
than before 7387aa5
. This was due to a large number of list calls and
the time needed to iterate over them.
Solution: Instead of requesting every type than Rancher uses, a
seperate map appended to when a cluster scoped handler
is created. The full map of all GroupVersionResources is kept as a
fallback for the use case where user controllers may exist on another
host other than the current leader.