• Anthony Yeh's avatar
    StatefulSet: Deflake e2e "restart" phase. · ce3fad32
    Anthony Yeh authored
    The test used to scale the StatefulSet down to 0, wait for ListPods to
    return 0 matching Pods, and then scale the StatefulSet back up.
    
    This was prone to a race in which StatefulSet was told to scale back up
    before it had observed its own deletion of the last Pod, as evidenced by
    logs showing the creation of Pod ss-1 prior to the creation of the
    replacement Pod ss-0.
    
    We now wait for the controller to observe all deletions before
    scaling it back up. This should fix flakes of the form:
    
    ```
    Too many pods scheduled, expected 1 got 2
    ```
    ce3fad32
Name
Last commit
Last update
..
BUILD Loading commit data...
OWNERS Loading commit data...
cronjob.go Loading commit data...
daemon_restart.go Loading commit data...
daemon_set.go Loading commit data...
deployment.go Loading commit data...
disruption.go Loading commit data...
framework.go Loading commit data...
job.go Loading commit data...
rc.go Loading commit data...
replica_set.go Loading commit data...
statefulset.go Loading commit data...
types.go Loading commit data...