kubernetes/pkg/controller/daemon
Anthony Yeh b4b8fdbca3 GC: Fix re-adoption race when orphaning dependents.
The GC expects that once it sees a controller with a non-nil
DeletionTimestamp, that controller will not attempt any adoption.
There was a known race condition that could cause a controller to
re-adopt something orphaned by the GC, because the controller is using a
cached value of its own spec from before DeletionTimestamp was set.

This fixes that race by doing an uncached quorum read of the controller
spec just before the first adoption attempt. It's important that this
read occurs after listing potential orphans. Note that this uncached
read is skipped if no adoptions are attempted (i.e. at steady state).
2017-03-17 15:39:26 -07:00
..
util Generated part for DaemonSet updates 2017-02-27 09:17:34 +01:00
BUILD DaemonSet: Use ControllerRef to route watch events. 2017-03-07 16:42:28 -08:00
daemoncontroller_test.go GC: Fix re-adoption race when orphaning dependents. 2017-03-17 15:39:26 -07:00
daemoncontroller.go GC: Fix re-adoption race when orphaning dependents. 2017-03-17 15:39:26 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
OWNERS Update daemon controller OWNERS file 2017-02-01 18:31:26 -08:00
update_test.go GC: Fix re-adoption race when orphaning dependents. 2017-03-17 15:39:26 -07:00
update.go DaemonSet: Relist Pods before each phase of sync. 2017-03-07 16:42:29 -08:00