Merge pull request #2282 from nalind/healthconfig-startperiod

Add StartPeriod to cmd/podman/docker.HealthConfig
This commit is contained in:
OpenShift Merge Robot 2019-02-06 19:41:17 +01:00 committed by GitHub
commit aa62843670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -71,6 +71,7 @@ type HealthConfig struct {
// Zero means to inherit. Durations are expressed as integer nanoseconds.
Interval time.Duration `json:",omitempty"` // Interval is the time to wait between checks.
Timeout time.Duration `json:",omitempty"` // Timeout is the time to wait before considering the check to have hung.
StartPeriod time.Duration `json:",omitempty"` // Time to wait after the container starts before running the first check.
// Retries is the number of consecutive failures needed to consider a container as unhealthy.
// Zero means inherit.