Merge "Use external service address and ports in sanity-check-for-v2.sh."
[multicloud/k8s.git] / src / orchestrator / json-schemas / deployment-group-intent.json
1 {
2     "$schema": "http://json-schema.org/schema#",
3     "type": "object",
4     "properties": {
5       "spec": {
6         "required": [
7             "profile",
8             "version"
9           ],
10           "type": "object",
11           "description": "DepSpecData has profile, version, OverrideValuesObj",
12           "properties": {
13             "override-values": {
14               "items": {
15                 "required": [
16                   "app-name",
17                   "values"
18                 ],
19                 "type": "object",
20                 "description": "OverrideValues has appName and ValuesObj",
21                 "properties": {
22                   "app-name": {
23                     "type": "string"
24                   },
25                   "values": {
26                     "additionalProperties": {
27                       "type": "string",
28                       "maxLength": 128
29                     },
30                     "type": "object"
31                   }
32                 }
33               },
34               "type": "array"
35             },
36             "profile": {
37               "type": "string",
38               "maxLength": 128,
39               "pattern": "[-_0-9a-zA-Z]+$"
40             },
41             "version": {
42               "type": "string",
43               "maxLength": 128,
44               "pattern": "[-_0-9a-zA-Z]+$"
45             }
46           }
47       },
48       "metadata": {
49         "required": ["name"],
50         "properties": {
51           "userData2": {
52             "description": "User relevant data for the resource",
53             "type": "string",
54             "example": "Some more data",
55             "maxLength": 512
56           },
57           "userData1": {
58             "description": "User relevant data for the resource",
59             "type": "string",
60             "example": "Some data",
61             "maxLength": 512
62           },
63           "name": {
64             "description": "Name of the resource",
65             "type": "string",
66             "example": "ResName",
67             "maxLength": 128,
68             "pattern": "[-_0-9a-zA-Z]+$"
69           },
70           "description": {
71             "description": "Description for the resource",
72             "type": "string",
73             "example": "Resource description",
74             "maxLength": 1024
75           }
76         }
77       }
78     }
79   }