gitlab-org--gitlab-foss/spec/fixtures/api/schemas/cluster_status.json
2017-10-31 12:23:31 +01:00

42 lines
1 KiB
JSON

{
"type": "object",
"required" : [
"status"
],
"properties" : {
"status": { "type": "string" },
"status_reason": { "type": ["string", "null"] },
"applications": { "$ref": "#/definitions/applications" }
},
"additionalProperties": false,
"definitions": {
"applications": {
"type": "object",
"additionalProperties": false,
"properties" : {
"helm": { "$ref": "#/definitions/app_status" },
"runner": { "$ref": "#/definitions/app_status" },
"ingress": { "$ref": "#/definitions/app_status" },
"prometheus": { "$ref": "#/definitions/app_status" }
}
},
"app_status": {
"type": "object",
"additionalProperties": false,
"properties" : {
"status": {
"type": {
"enum": [
"installable",
"installing",
"installed",
"error"
]
}
},
"status_reason": { "type": ["string", "null"] }
},
"required" : [ "status" ]
}
}
}