k3s/test/e2e/apps
Anthony Yeh ce3fad326f
StatefulSet: Deflake e2e "restart" phase.
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
```
2017-08-23 15:08:58 -07:00
..
BUILD Change API version of statefulset scale subresource e2e test to v1beta2 2017-08-17 15:11:10 -07:00
OWNERS
cronjob.go
daemon_restart.go
daemon_set.go Migrate to IsControlledBy from meta/v1 package 2017-08-06 22:43:46 +10:00
deployment.go CollisionCount should have type int32 across controllers that use it for collision avoidance 2017-08-18 10:48:12 +08:00
disruption.go Fix code implicitly casting clientsets to getters 2017-08-06 15:30:13 +02:00
framework.go
job.go Migrate to GetControllerOf from meta/v1 package 2017-08-06 22:41:58 +10:00
rc.go
replica_set.go
statefulset.go StatefulSet: Deflake e2e "restart" phase. 2017-08-23 15:08:58 -07:00
types.go Remove ScheduledJobs support 2017-08-08 15:22:26 +02:00