Adjust validation to pass through complex readiness probes

We need to pass complex (dict-based) readiness probes through to
entrypoint to handle.
Keep backward compatibility with old oneline readiness probes for now.

Change-Id: I2e8aaeeabcb0c2ddfcf605008763a7a938a578b4
This commit is contained in:
Yuriy Taraday 2016-11-18 13:58:31 +03:00
parent a20501eb20
commit af2ee6477b
1 changed files with 4 additions and 1 deletions

View File

@ -214,7 +214,10 @@ SERVICE_SCHEMA = {
"additionalProperties": False,
"properties": {
"readiness": NOT_EMPTY_STRING_SCHEMA,
"readiness": {"oneOf": [
NOT_EMPTY_STRING_SCHEMA,
PROBE_SCHEMA,
]},
"liveness": PROBE_SCHEMA
}
},