Commit edb269ba authored by Eric Tune's avatar Eric Tune

Merge pull request #14428 from socaa/autoscaling-utils-wait-for-service

WaitForService added to autoscaling_utils.go
parents efedcb6c 58bea1b7
...@@ -35,6 +35,8 @@ const ( ...@@ -35,6 +35,8 @@ const (
port = 80 port = 80
targetPort = 8080 targetPort = 8080
timeoutRC = 120 * time.Second timeoutRC = 120 * time.Second
startServiceTimeout = time.Minute
startServiceInterval = 5 * time.Second
image = "gcr.io/google_containers/resource_consumer:beta" image = "gcr.io/google_containers/resource_consumer:beta"
rcIsNil = "ERROR: replicationController = nil" rcIsNil = "ERROR: replicationController = nil"
) )
...@@ -246,6 +248,7 @@ func runServiceAndRCForResourceConsumer(c *client.Client, ns, name string, repli ...@@ -246,6 +248,7 @@ func runServiceAndRCForResourceConsumer(c *client.Client, ns, name string, repli
}, },
}) })
expectNoError(err) expectNoError(err)
expectNoError(waitForService(c, ns, name, true, startServiceInterval, startServiceTimeout))
config := RCConfig{ config := RCConfig{
Client: c, Client: c,
Image: image, Image: image,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment