summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/cluster_status.json
blob: 451ea50f0f9df60253c3b5ba0313e26c0dee3c68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  "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" ]
    }
  }
}