kubernetes/pkg/controller
Alexander Zielenski 7436af3302
support removal of event handlers from SharedIndexInformers
To be able to implement controllers that are dynamically deciding
on which resources to watch, it is required to get rid of
dedicated watches and event handlers again. This requires the
possibility to remove event handlers from SharedIndexInformers again.
Stopping an informer is not sufficient, because there might
be multiple controllers in a controller manager that independently
decide which resources to watch.

Unfortunately the ResourceEventHandler interface encourages to use
value objects for handlers (like the ResourceEventHandlerFuncs
struct, that uses value receivers to implement the interface).
Go does not support comparison of function pointers and therefore
the comparison of such structs is not possible, also. To be able
to remove all kinds of handlers and to solve the problem of
multi-registrations of handlers a registration handle is introduced.
It is returned when adding a handler and can later be used to remove
the registration again. This handle directly stores the created
listener to simplify the deletion.
2022-08-08 14:01:09 -07:00
..
apis/config refactor: remove deprecated flags 2022-04-22 20:28:12 +08:00
bootstrap Merge pull request #105510 from damemi/wire-contexts-bootstrap 2021-11-02 14:27:42 -07:00
certificates Merge pull request #111061 from pacoxu/key-encipherment-optional 2022-08-02 18:55:51 -07:00
clusterroleaggregation Wire contexts to RBAC controllers 2021-10-07 15:04:49 -04:00
cronjob Generate and format files 2022-07-26 13:14:05 -04:00
daemon Generate and format files 2022-07-26 13:14:05 -04:00
deployment Generate and format files 2022-07-26 13:14:05 -04:00
disruption Add worker to clean up stale DisruptionTarget condition 2022-08-02 11:25:01 -04:00
endpoint Optimising print information 2022-07-14 15:03:03 +08:00
endpointslice Generate and format files 2022-07-26 13:14:05 -04:00
endpointslicemirroring cleanup: remove duplicate import 2022-07-14 11:25:19 +08:00
garbagecollector Merge pull request #110888 from likakuli/feature_ignoreeventforgc 2022-08-01 12:10:28 -07:00
history Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
job Fix deleting UIDs tracking expectations 2022-08-05 12:37:31 -04:00
namespace Generate and format files 2022-07-26 13:14:05 -04:00
nodeipam Introduce MultiCIDRRangeAllocator 2022-08-06 00:10:39 +00:00
nodelifecycle Introduction of a pod condition type indicating disruption. Its reason field indicates the reason: 2022-08-02 11:12:16 +02:00
podautoscaler Generate and format files 2022-07-26 13:14:05 -04:00
podgc Introduction of a pod condition type indicating disruption. Its reason field indicates the reason: 2022-08-02 11:12:16 +02:00
replicaset Fix event broadcaster shutdown in multiple controllers 2022-05-17 22:14:19 +02:00
replication support removal of event handlers from SharedIndexInformers 2022-08-08 14:01:09 -07:00
resourcequota quota: add an update filter 2022-07-08 18:39:55 -04:00
serviceaccount no auto-generation of secret-based service account token 2022-02-23 14:17:30 -08:00
statefulset Generate and format files 2022-07-26 13:14:05 -04:00
storageversiongc Wire contexts to Core controllers 2021-11-01 10:29:00 -04:00
testutil Migrate to k8s.io/utils/clock in pkg/controller 2021-09-10 11:42:32 +02:00
ttl Reduce number of buckets in ttl controller for 2k+ nodes clusters 2022-05-05 12:26:36 +00:00
ttlafterfinished OWNERS cleanup - Jan 2021 Week 1 2022-01-10 08:14:29 -05:00
util Generate and format files 2022-07-26 13:14:05 -04:00
volume Add SupportsSELinuxContextMount 2022-08-04 10:51:28 +02:00
controller_ref_manager_test.go Merge pull request #101250 from evertrain/master 2021-11-10 09:19:26 -08:00
controller_ref_manager.go Generate and format files 2022-07-26 13:14:05 -04:00
controller_utils_test.go Wire contexts to Batch controllers (#105491) 2021-11-10 14:56:46 -08:00
controller_utils.go Generate and format files 2022-07-26 13:14:05 -04:00
doc.go
lookup_cache.go
OWNERS add myself as approver to pkg/controller 2022-01-12 19:33:02 -05:00