Skip to content

Commit 594f32e

Browse files
authored
Add support for Healthcheck.StartInterval (v1.44 API) (#1042)
1 parent e367dfb commit 594f32e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

container.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,10 @@ type HealthConfig struct {
389389
Test []string `json:"Test,omitempty" yaml:"Test,omitempty" toml:"Test,omitempty"`
390390

391391
// Zero means to inherit. Durations are expressed as integer nanoseconds.
392-
Interval time.Duration `json:"Interval,omitempty" yaml:"Interval,omitempty" toml:"Interval,omitempty"` // Interval is the time to wait between checks.
393-
Timeout time.Duration `json:"Timeout,omitempty" yaml:"Timeout,omitempty" toml:"Timeout,omitempty"` // Timeout is the time to wait before considering the check to have hung.
394-
StartPeriod time.Duration `json:"StartPeriod,omitempty" yaml:"StartPeriod,omitempty" toml:"StartPeriod,omitempty"` // The start period for the container to initialize before the retries starts to count down.
392+
Interval time.Duration `json:"Interval,omitempty" yaml:"Interval,omitempty" toml:"Interval,omitempty"` // Interval is the time to wait between checks.
393+
Timeout time.Duration `json:"Timeout,omitempty" yaml:"Timeout,omitempty" toml:"Timeout,omitempty"` // Timeout is the time to wait before considering the check to have hung.
394+
StartPeriod time.Duration `json:"StartPeriod,omitempty" yaml:"StartPeriod,omitempty" toml:"StartPeriod,omitempty"` // The start period for the container to initialize before the retries starts to count down.
395+
StartInterval time.Duration `json:"StartInterval,omitempty" yaml:"StartInterval,omitempty" toml:"StartInterval,omitempty"` // The start interval is the time to wait between checks during the start period.
395396

396397
// Retries is the number of consecutive failures needed to consider a container as unhealthy.
397398
// Zero means inherit.

0 commit comments

Comments
 (0)