k3s/pkg/controller/statefulset
Kenneth Owens 4d99b4d825 StatefulSet refactoring and semantics fix
1. pcb and pcb controller are removed and their functionality is
encapsulated in StatefulPodControlInterface.
2. IdentityMappers has been removed to clarify what properties of a Pod are
mutated by the controller. All mutations are performed in the
UpdateStatefulPod method of the StatefulPodControlInterface.
3. The statefulSetIterator and petQueue classes are removed. These classes
sorted Pods by CreationTimestamp. This is brittle and not resilient to
clock skew. The current control loop, which implements the same logic,
is in stateful_set_control.go. The Pods are now sorted and considered by
their ordinal indices, as is outlined in the documentation.
4. StatefulSetController now checks to see if the Pods matching a
StatefulSet's Selector also match the Name of the StatefulSet. This will
make the controller resilient to overlapping, and will be enhanced by
the addition of ControllerRefs.
2017-02-09 08:42:28 -08:00
..
BUILD StatefulSet refactoring and semantics fix 2017-02-09 08:42:28 -08:00
OWNERS
stateful_pod_control.go StatefulSet refactoring and semantics fix 2017-02-09 08:42:28 -08:00
stateful_pod_control_test.go StatefulSet refactoring and semantics fix 2017-02-09 08:42:28 -08:00
stateful_set.go StatefulSet refactoring and semantics fix 2017-02-09 08:42:28 -08:00
stateful_set_control.go StatefulSet refactoring and semantics fix 2017-02-09 08:42:28 -08:00
stateful_set_control_test.go StatefulSet refactoring and semantics fix 2017-02-09 08:42:28 -08:00
stateful_set_test.go StatefulSet refactoring and semantics fix 2017-02-09 08:42:28 -08:00
stateful_set_utils.go StatefulSet refactoring and semantics fix 2017-02-09 08:42:28 -08:00
stateful_set_utils_test.go StatefulSet refactoring and semantics fix 2017-02-09 08:42:28 -08:00