Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions playground/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,20 @@ func (s *Manifest) Validate(out *output) error {

readyCheck := *ss.ReadyCheck
ss.ReadyCheck = nil

// Apply sensible defaults so Docker doesn't fall back to 30s interval
if readyCheck.Interval == 0 {
readyCheck.Interval = 1 * time.Second
}
if readyCheck.Timeout == 0 {
readyCheck.Timeout = 10 * time.Second
}
if readyCheck.Retries == 0 {
readyCheck.Retries = 30
}
if readyCheck.StartPeriod == 0 {
readyCheck.StartPeriod = 1 * time.Second
}
ss.WithLabel(healthCheckSidecarLabel, sidecarName)

// the url supplied by the service will bind to localhost, we have to change it
Expand Down