Change the type of interval, timeout and start_period of healthcheck from string to * time.Duration

Signed-off-by: Li Yi <denverdino@gmail.com>
This commit is contained in:
Li Yi
2017-08-30 09:09:06 +08:00
committed by Li Yi
parent 0abdad615f
commit e02fcfd34e
6 changed files with 22 additions and 30 deletions

View File

@ -316,7 +316,7 @@
"additionalProperties": false,
"properties": {
"disable": {"type": "boolean"},
"interval": {"type": "string"},
"interval": {"type": "string", "format": "duration"},
"retries": {"type": "number"},
"test": {
"oneOf": [
@ -324,8 +324,8 @@
{"type": "array", "items": {"type": "string"}}
]
},
"timeout": {"type": "string"},
"start_period": {"type": "string"}
"timeout": {"type": "string", "format": "duration"},
"start_period": {"type": "string", "format": "duration"}
}
},
"deployment": {