pkg/codegen/cmd/injection-gen/generators
Matt Moore df29e2a20a
Avoid second lister fetch during finalizer reconciliation. (#2596)
I noticed that the finalizer manipulation code was performing a second fetch of the resource from the lister cache to determine the differences in finalizers when the finalizers are being modify immediately above each callsite.

This changes both call sites to simply pass through the "desired finalizers" as a new parameter (instead of assigning them), which lets us use the unmodified resource and avoid the redundant lister cache fetch.
2022-09-20 22:43:09 +00:00
..
client.go fix linting (#2555) 2022-07-22 15:28:21 +00:00
comment_parser.go codegen - support multiple annotation keys (#2350) 2021-11-17 13:53:28 -08:00
comment_parser_test.go codegen - support multiple annotation keys (#2350) 2021-11-17 13:53:28 -08:00
duck.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
factory.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
fake_client.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
fake_duck.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
fake_factory.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
fake_filtered_factory.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
fake_filtered_informer.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
fake_informer.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
filtered_factory.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
filtered_informer.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
informer.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
namesystems.go Generate Base Reconciler Code for Injection Based Controllers. (#947) 2020-02-04 10:23:30 -08:00
packages.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
reconciler_controller.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
reconciler_controller_stub.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
reconciler_reconciler.go Avoid second lister fetch during finalizer reconciliation. (#2596) 2022-09-20 22:43:09 +00:00
reconciler_reconciler_stub.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00
reconciler_state.go switch to klog/v2 (#2386) 2022-01-11 13:02:14 -08:00