• 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
..
apimachinery Loading commit data...
apps Loading commit data...
auth Loading commit data...
autoscaling Loading commit data...
chaosmonkey Loading commit data...
common Loading commit data...
framework Loading commit data...
generated Loading commit data...
instrumentation Loading commit data...
kubectl Loading commit data...
lifecycle Loading commit data...
manifest Loading commit data...
network Loading commit data...
node Loading commit data...
perftype Loading commit data...
scalability Loading commit data...
scheduling Loading commit data...
servicecatalog Loading commit data...
storage Loading commit data...
testing-manifests Loading commit data...
upgrades Loading commit data...
BUILD Loading commit data...
README.md Loading commit data...
dashboard.go Loading commit data...
e2e-example-config.json Loading commit data...
e2e.go Loading commit data...
e2e_test.go Loading commit data...
events.go Loading commit data...
example_cluster_dns.go Loading commit data...
examples.go Loading commit data...
gke_local_ssd.go Loading commit data...
gke_node_pools.go Loading commit data...
limit_range.go Loading commit data...
network_partition.go Loading commit data...
pod_gc.go Loading commit data...
pods.go Loading commit data...
pre_stop.go Loading commit data...
resource_quota.go Loading commit data...
ssh.go Loading commit data...
ubernetes_lite.go Loading commit data...