Skip to content

Commit

Permalink
bump broker waitforready timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
bparees committed Jul 26, 2017
1 parent 49df2d6 commit 7780aff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/template/servicebroker/servicebroker.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func NewBroker(privrestconfig restclient.Config, privkc kclientset.Interface, in
// the broker is initialised asynchronously because fetching the service
// account token requires the main API server to be running.

glog.V(2).Infof("Template service broker: waiting for authentication token")
glog.Infof("Template service broker: waiting for authentication token")

restconfig, _, kc, extkc, err := serviceaccounts.Clients(
privrestconfig,
Expand Down Expand Up @@ -86,13 +86,13 @@ func NewBroker(privrestconfig restclient.Config, privkc kclientset.Interface, in
b.extrouteclient = extrouteclientset
b.templateclient = templateclientset.Template()

glog.V(2).Infof("Template service broker: waiting for informer sync")
glog.Infof("Template service broker: waiting for informer sync")

for !informer.Informer().HasSynced() {
time.Sleep(100 * time.Millisecond)
time.Sleep(5 * time.Minute)
}

glog.V(2).Infof("Template service broker: ready; reading namespaces %v", namespaces)
glog.Infof("Template service broker: ready; reading namespaces %v", namespaces)

close(b.ready)
}()
Expand All @@ -106,7 +106,7 @@ func NewBroker(privrestconfig restclient.Config, privkc kclientset.Interface, in
func (b *Broker) WaitForReady() error {
// delay up to 10 seconds if not ready (unlikely), before returning a
// "try again" response.
timer := time.NewTimer(10 * time.Second)
timer := time.NewTimer(30 * time.Second)
defer timer.Stop()

select {
Expand Down

0 comments on commit 7780aff

Please sign in to comment.