grace_period -> grace
This commit is contained in:
parent
68e679a8f2
commit
d0140f07ca
|
@ -83,7 +83,7 @@ func (r *RestartPolicy) Merge(rp *RestartPolicy) {
|
|||
// failing health checks.
|
||||
type CheckRestart struct {
|
||||
Limit int `mapstructure:"limit"`
|
||||
Grace *time.Duration `mapstructure:"grace_period"`
|
||||
Grace *time.Duration `mapstructure:"grace"`
|
||||
IgnoreWarnings bool `mapstructure:"ignore_warnings"`
|
||||
}
|
||||
|
||||
|
|
|
@ -1062,7 +1062,7 @@ func parseChecks(service *api.Service, checkObjs *ast.ObjectList) error {
|
|||
func parseCheckRestart(cro *ast.ObjectItem) (*api.CheckRestart, error) {
|
||||
valid := []string{
|
||||
"limit",
|
||||
"grace_period",
|
||||
"grace",
|
||||
"ignore_warnings",
|
||||
}
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ job "binstore-storagelocker" {
|
|||
|
||||
check_restart {
|
||||
limit = 3
|
||||
grace_period = "10s"
|
||||
grace = "10s"
|
||||
ignore_warnings = true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue