k3s/pkg/controller
k8s-merge-robot 4ee877c226 Merge pull request #28379 from deads2k/allow-late-joins
Automatic merge from submit-queue

allow handler to join after the informer has started

This allows an event handler to join after a SharedInformer has started.  It can't add any indexes, but it can add its reaction functions.

This works by 
 1. stopping the flow of events from the reflector (thus stopping updates to our store)
 1. registering the new handler
 1. sending synthetic "add" events to the new handler only
 1. unblocking the flow of events

It would be possible to 
 1. block
 1. list
 1. add recorder
 1. unblock
 1. play list to as-yet unregistered handler
 1. block
 1. remove recorder
 1. play recording
 1. add new handler
 1. unblock

But that is considerably more complicated.  I'd rather not start there since this ought to be the exception rather than the rule.

@wojtek-t who requested this power in the initial review
@smarterclayton @liggitt I think this resolves our all-in-one ordering problem.
@hongchaodeng since this came up on the call
2016-07-05 06:49:10 -07:00
..
daemon Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
deployment Break deployment controller into separate self-contained files 2016-07-02 09:53:52 +02:00
endpoint Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
framework allow handler to join after the informer has started 2016-07-05 07:38:08 -04:00
garbagecollector Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
job Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
namespace Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
node Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
petset Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
podautoscaler Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
podgc Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
replicaset Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
replication Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
resourcequota Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
route Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
service Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
serviceaccount Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
volume Reorganize volume controllers and manager 2016-07-01 18:50:25 -07:00
OWNERS Remove myself from a bunch of OWNERS files, as I am too overloaded 2016-05-11 13:34:51 -07:00
controller_utils.go Merge pull request #26237 from duglin/UseConstant 2016-07-01 16:55:39 -07:00
controller_utils_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
doc.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
lookup_cache.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00