Skip to content

Commit

Permalink
add readiness check feature for httpclient
Browse files Browse the repository at this point in the history
  • Loading branch information
alileza committed Oct 9, 2019
1 parent 933f562 commit 02e3abf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tomato/tomato.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ func (t *Tomato) Run() error {
}

h.Register(cfg, resource)

if v, ok := cfg.Params["readiness_check"]; ok && v != "true" {
t.log.Printf(" [%s] Skipping\n", cfg.Name)
continue
}
if err := t.waitResource(resource); err != nil {
return errors.Wrapf(err, " [%s] Error", cfg.Name)
}
Expand Down

0 comments on commit 02e3abf

Please sign in to comment.