1
0
mirror of https://github.com/rancher/norman.git synced 2025-07-13 23:26:00 +00:00
Commit Graph

3 Commits

Author SHA1 Message Date
Jiaqi Luo
5d579d3486 bump Go to 1.19 and fix errores golangci-lint reports 2022-12-02 19:55:36 -07:00
dax
f5744043a6 Refactor set of cluster scoped handlers
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.
2019-05-28 18:48:15 -07:00
dax
7387aa53a5 Record cluster scoped handlers
Problem: Cluster scoped handlers were not being cleaned up without
manually writing garbage collection functions.

Solution: All cluster scoped handlers will be recorded in a global map
in a generic format so that they can be removed by a generic function.
2019-04-23 12:25:39 -07:00