charts, k8s: workaround to wait for deploy pods by fixed duration

This commit is contained in:
Miya Chen 2017-10-11 14:33:51 +08:00
parent d91a0b7e69
commit b825aef124
2 changed files with 5 additions and 3 deletions

View File

@ -50,9 +50,9 @@ func installRelease(name string, args []string, path string, debug bool) error {
cmd.Args = append(cmd.Args, "--dry-run") cmd.Args = append(cmd.Args, "--dry-run")
cmd.Args = append(cmd.Args, "--debug") cmd.Args = append(cmd.Args, "--debug")
} else { } else {
cmd.Args = append(cmd.Args, "--wait") // cmd.Args = append(cmd.Args, "--wait")
cmd.Args = append(cmd.Args, "--timeout") // cmd.Args = append(cmd.Args, "--timeout")
cmd.Args = append(cmd.Args, "600") // cmd.Args = append(cmd.Args, "120")
} }
if debug { if debug {

View File

@ -78,6 +78,8 @@ func (eth *ethereum) Start() error {
return err return err
} }
<-time.After(3 * time.Minute)
eth.k8sClient = k8sClient(eth.chart.Name() + "-0") eth.k8sClient = k8sClient(eth.chart.Name() + "-0")
return nil return nil
} }