Add a rollingupdate lib and command to kubectl

Also decouple conditions from client for testability.
This commit is contained in:
Jeff Lowdermlk
2014-12-10 13:48:48 -08:00
parent ded3ef2827
commit 0ab39df66b
8 changed files with 576 additions and 5 deletions

View File

@@ -251,7 +251,7 @@ func runReplicationControllerTest(c *client.Client) {
glog.Infof("Done creating replication controllers")
// Give the controllers some time to actually create the pods
if err := wait.Poll(time.Second, time.Second*30, c.ControllerHasDesiredReplicas(controller)); err != nil {
if err := wait.Poll(time.Second, time.Second*30, client.ControllerHasDesiredReplicas(c, &controller)); err != nil {
glog.Fatalf("FAILED: pods never created %v", err)
}