This drops the twofold implementation in favor of a single `MemoryRESTClientGetter` which can work with an arbitrary `rest.Config`. The new `MemoryRESTClientGetter` lazy-loads and caches the objects it initializes, thereby creating at most one instance of each object for the duration of the reconcile of a single `HelmRelease` object. Based on some initial tests, this seems to reduce the overal memory footprint of the controller. Signed-off-by: Hidde Beydals <hidde@hhh.computer> |
||
---|---|---|
.. | ||
helmrelease_controller.go | ||
helmrelease_controller_chart.go | ||
helmrelease_controller_chart_test.go | ||
helmrelease_controller_fuzz_test.go | ||
helmrelease_controller_test.go | ||
source_predicate.go | ||
suite_test.go |