|
28 | 28 | }, |
29 | 29 | "external_source_url": {"type": "string", "title": "url to external data source"} |
30 | 30 | } |
| 31 | + }, |
| 32 | + "SecurityContext": { |
| 33 | + "type": "object", |
| 34 | + "title": "SecurityContext", |
| 35 | + "additionalProperties": true, |
| 36 | + "properties": { |
| 37 | + "runAsUser": { "type": "integer" }, |
| 38 | + "runAsGroup": { "type": "integer" }, |
| 39 | + "fsGroup": { "type": "integer" } |
| 40 | + } |
| 41 | + }, |
| 42 | + "ContainerSecurityContext": { |
| 43 | + "type": "object", |
| 44 | + "title": "ContainerSecurityContext", |
| 45 | + "additionalProperties": true, |
| 46 | + "properties": { |
| 47 | + "runAsNonRoot": { "type": "boolean" }, |
| 48 | + "allowPrivilegeEscalation": { "type": "boolean" } |
| 49 | + } |
31 | 50 | } |
32 | 51 | }, |
33 | 52 |
|
34 | 53 | "type": "object", "required": ["image"], |
35 | 54 | "properties": { |
| 55 | + "openshift": { |
| 56 | + "type": "object", |
| 57 | + "title": "OpenShift compatibility settings", |
| 58 | + "additionalProperties": false, |
| 59 | + "properties": { |
| 60 | + "enabled": { |
| 61 | + "type": "boolean", |
| 62 | + "title": "Enable OpenShift compatibility", |
| 63 | + "default": false |
| 64 | + }, |
| 65 | + "securityContext": { "$ref": "#/definitions/SecurityContext" }, |
| 66 | + "containerSecurityContext": { "$ref": "#/definitions/ContainerSecurityContext" } |
| 67 | + } |
| 68 | + }, |
36 | 69 | "image": { |
37 | 70 | "type": "object", "title": "image", "additionalProperties": false, |
38 | 71 | "required": ["server", "client", "pgsql"], |
|
118 | 151 | "type": ["null", "object"], "additionalProperties": false, "title": "opal server settings", |
119 | 152 | "required": ["port", "policyRepoUrl", "pollingInterval", "dataConfigSources", "broadcastPgsql", "uvicornWorkers", "replicas"], |
120 | 153 | "properties": { |
| 154 | + "securityContext": { "$ref": "#/definitions/SecurityContext" }, |
| 155 | + "containerSecurityContext": { "$ref": "#/definitions/ContainerSecurityContext" }, |
121 | 156 | "enabled": { |
122 | 157 | "type": "boolean", "title": "enable server", "default": true |
123 | 158 | }, |
|
181 | 216 | "type": ["null", "object"], "additionalProperties": false, "title": "opal client settings", |
182 | 217 | "required": ["port", "opaPort", "replicas"], |
183 | 218 | "properties": { |
| 219 | + "securityContext": { "$ref": "#/definitions/SecurityContext" }, |
| 220 | + "containerSecurityContext": { "$ref": "#/definitions/ContainerSecurityContext" }, |
184 | 221 | "enabled": { |
185 | 222 | "type": "boolean", "title": "enable client", "default": true |
186 | 223 | }, |
|
220 | 257 | "title": "when kubelet should pull specified image" |
221 | 258 | } |
222 | 259 | } |
| 260 | + }, |
| 261 | + "postgresql": { |
| 262 | + "type": ["null", "object"], |
| 263 | + "additionalProperties": false, |
| 264 | + "title": "PostgreSQL settings", |
| 265 | + "properties": { |
| 266 | + "securityContext": { "$ref": "#/definitions/SecurityContext" }, |
| 267 | + "containerSecurityContext": { "$ref": "#/definitions/ContainerSecurityContext" }, |
| 268 | + "extraEnv": { |
| 269 | + "type": "object", |
| 270 | + "title": "extra environment variables list", |
| 271 | + "default": {} |
| 272 | + } |
| 273 | + } |
223 | 274 | } |
224 | 275 | } |
225 | 276 | } |
0 commit comments