kubernetes/pkg/controller/statefulset
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 StatefulSet: Use ControllerRef to route watch events. 2017-03-06 09:46:03 -08:00
OWNERS Add approvers to StatefulSet 2017-02-23 11:03:09 -08:00
stateful_pod_control_test.go controller: statefulsets respect observed generation 2017-03-02 19:43:06 +01:00
stateful_pod_control.go controller: statefulsets respect observed generation 2017-03-02 19:43:06 +01:00
stateful_set_control_test.go GC: Fix re-adoption race when orphaning dependents. 2017-03-17 15:39:26 -07:00
stateful_set_control.go StatefulSet: Use ControllerRefManager to adopt/orphan. 2017-03-06 09:46:03 -08:00
stateful_set_test.go GC: Fix re-adoption race when orphaning dependents. 2017-03-17 15:39:26 -07:00
stateful_set_utils_test.go StatefulSet: Add ControllerRef on all created Pods. 2017-03-06 09:46:03 -08:00
stateful_set_utils.go StatefulSet: Always set BlockOwnerDeletion in ControllerRef. 2017-03-06 09:46:03 -08:00
stateful_set.go GC: Fix re-adoption race when orphaning dependents. 2017-03-17 15:39:26 -07:00