forked from permitio/opal-helm-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
values.schema.json
221 lines (219 loc) · 7.75 KB
/
values.schema.json
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://permitio.github.io/opal-helm-chart/",
"title": "OPAL Helm values",
"definitions": {
"DataSourceEntry": {
"type": "object", "title": "DataSourceEntry", "additionalProperties": true,
"properties": {
"url": {"type": "string", "title": "url source to query for data"},
"topics": {"type": "array", "title": "topics the data applies to", "items": { "type": "string" }},
"dst_path": {"type": "string", "title": "OPA data api path to store the document at"},
"data": {"type": "object", "title": "Data payload to embed within the data update (instead of having the client fetch it from the url)."},
"save_method": {"type": "string", "title": "Method used to write into OPA - PUT/PATCH"}
}
},
"ServerDataSourceConfig": {
"type": "object", "title": "ServerDataSourceConfig", "additionalProperties": false,
"properties": {
"config": {
"type": ["object", "null"], "title": "DataSourceConfig", "additionalProperties": false,
"properties": {
"entries": {
"type": "array", "title": "list of data sources", "default": [],
"items": { "$ref": "#/definitions/DataSourceEntry" }
}
}
},
"external_source_url": {"type": "string", "title": "url to external data source"}
}
}
},
"type": "object", "required": ["image"],
"properties": {
"image": {
"type": "object", "title": "image", "additionalProperties": false,
"required": ["server", "client", "pgsql"],
"properties": {
"server": {
"type": "object", "title": "server", "additionalProperties": false,
"properties": {
"registry": {
"type": "string",
"default": "docker.io",
"title": "server docker image registry"
},
"repository": {
"type": "string",
"default": "permitio/opal-server",
"title": "server docker image repository"
},
"tag": {
"type": "string",
"title": "server docker image tag. defaults to chart appVersion"
},
"pullSecrets": {
"type": "array",
"default": [],
"title": "server docker image pull secrets"
}
}
},
"client": {
"type": "object", "title": "client", "additionalProperties": false,
"properties": {
"registry": {
"type": "string",
"default": "docker.io",
"title": "client docker image registry"
},
"repository": {
"type": "string",
"default": "permitio/opal-client",
"title": "client docker image repository"
},
"tag": {
"type": "string",
"title": "client docker image tag. defaults to chart appVersion"
},
"pullSecrets": {
"type": "array",
"default": [],
"title": "client docker image pull secrets"
}
}
},
"pgsql": {
"type": "object",
"title": "pgsql",
"additionalProperties": false,
"properties": {
"registry": {
"type": "string",
"default": "docker.io",
"title": "pgsql docker image registry"
},
"repository": {
"type": "string",
"default": "postgres",
"title": "pgsql docker image repository"
},
"tag": {
"type": "string",
"default": "alpine",
"title": "pgsql docker image tag"
},
"pullSecrets": {
"type": "array",
"default": [],
"title": "pgsql docker image pull secrets"
}
}
}
}
},
"server": {
"type": ["null", "object"], "additionalProperties": false, "title": "opal server settings",
"required": ["port", "policyRepoUrl", "pollingInterval", "dataConfigSources", "broadcastPgsql", "uvicornWorkers", "replicas"],
"properties": {
"enabled": {
"type": "boolean", "title": "enable server", "default": true
},
"port": {
"type": "integer", "title": "server listening port", "default": 7002
},
"policyRepoUrl": {
"type": "string", "title": "policy repo url",
"default":"https://github.com/permitio/opal-example-policy-repo"
},
"policyRepoSshKey": {
"type": ["null", "string"], "title": "policy SSH key","default": null
},
"policyRepoClonePath": {
"type": ["null", "string"], "title": "policy clone path","default": null
},
"policyRepoMainBranch": {
"type": ["null", "string"], "title": "policy main branch","default": null
},
"pollingInterval": {
"type": "integer", "title": "polling interval (sec)", "default": 30
},
"dataConfigSources": {"$ref": "#/definitions/ServerDataSourceConfig"},
"broadcastUri": {
"type": ["null", "string"], "title": "broadcast url", "default": null
},
"broadcastPgsql": {
"type": "boolean", "title": "install broadcast pgsql", "default": true
},
"broadcastReplicas": {
"type": "integer", "title": "replicas for broadcast pgsql", "default": 1
},
"uvicornWorkers": {
"type": "integer", "title": "num of uvicorn workers per pod", "default": 4
},
"replicas": {
"type": "integer", "title": "num of replicas", "default": 1
},
"extraEnv": {
"type": "object", "title": "extra environment variables list", "default": null
},
"secrets": {
"type": "array",
"title": "name of a kubernetes secret from where to fetch secret environment variables.",
"default": null,
"items": { "type": "string" }
},
"resources": {
"type": "object",
"title": "resources",
"default": null
},
"imagePullPolicy": {
"type": "string",
"default": "IfNotPresent",
"title": "when kubelet should pull specified image"
}
}
},
"client": {
"type": ["null", "object"], "additionalProperties": false, "title": "opal client settings",
"required": ["port", "opaPort", "replicas"],
"properties": {
"enabled": {
"type": "boolean", "title": "enable client", "default": true
},
"port": {
"type": "integer", "title": "client rest port", "default": 7000
},
"opaPort": {
"type": "integer", "title": "client embedded opa port", "default": 8181
},
"replicas": {
"type": "integer", "title": "num of replicas", "default": 1
},
"extraEnv": {
"type": "object", "title": "extra environment variables list", "default": null
},
"opaStartupData": {
"type": "object", "title": "client startup data for embedded opa", "default": null
},
"secrets": {
"type": "array",
"title": "name of a kubernetes secret from where to fetch secret environment variables.",
"default": null,
"items": { "type": "string" }
},
"resources": {
"type": "object",
"title": "resources",
"default": null
},
"imagePullPolicy": {
"type": "string",
"default": "IfNotPresent",
"title": "when kubelet should pull specified image"
}
}
}
}
}