• Kenneth Owens's avatar
    StatefulSet refactoring and semantics fix · 4d99b4d8
    Kenneth Owens authored
    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.
    4d99b4d8
Name
Last commit
Last update
..
BUILD Loading commit data...
OWNERS Loading commit data...
stateful_pod_control.go Loading commit data...
stateful_pod_control_test.go Loading commit data...
stateful_set.go Loading commit data...
stateful_set_control.go Loading commit data...
stateful_set_control_test.go Loading commit data...
stateful_set_test.go Loading commit data...
stateful_set_utils.go Loading commit data...
stateful_set_utils_test.go Loading commit data...