k3s/pkg/controller/replication
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
..
BUILD GC: Fix re-adoption race when orphaning dependents. 2017-03-17 15:39:26 -07:00
OWNERS controller: add approvers for rc/rs 2017-02-22 10:18:08 +01:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
replication_controller.go GC: Fix re-adoption race when orphaning dependents. 2017-03-17 15:39:26 -07:00
replication_controller_test.go GC: Fix re-adoption race when orphaning dependents. 2017-03-17 15:39:26 -07:00
replication_controller_utils.go Enqueue controllers after minreadyseconds when all pods are ready 2017-02-27 19:28:15 +01:00