-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathvalues.schema.json
559 lines (559 loc) · 27.1 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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"required": [
"global",
"srv",
"router",
"broker"
],
"properties": {
"global": {
"$id": "#/properties/global",
"title": "Helm global values",
"description": "For more information, see https://helm.sh/docs/chart_template_guide/subcharts_and_globals/#global-chart-values",
"type": "object",
"required": [
"domain",
"shootName"
],
"properties": {
"imagePullSecret": {
"$id": "#/properties/global/imagePullSecret",
"title": "Image Pull Secret configuration",
"description": "For more information, see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/",
"additionalProperties": false,
"type": "object",
"properties": {
"name": {
"title": "Secret name",
"description": "Name of the Kubernetes Secret, used as an image pull secret (must be of type kubernetes.io/dockerconfigjson). Can't be used with the `dockerconfigjson` option.",
"$ref": "#/definitions/KubernetesName"
}
}
},
"domain": {
"$id": "#/properties/global/domain",
"title": "Domain Name",
"description": "Full-qualified domain name used to access applications in your Kyma cluster",
"type": "string",
"pattern": "[0-9a-z][0-9a-z-.]*"
},
"shootName": {
"$id": "#/properties/global/shootName",
"title": "Kyma Cluster shoot name",
"description": "Shoot name of your Kyma cluster",
"type": "string",
"pattern": "[0-9a-z][0-9a-z-.]*"
}
}
},
"srv": {
"$id": "#/properties/srv",
"description": "Deployment"
},
"router": {
"$id": "#/properties/router",
"description": "Deployment"
},
"broker": {
"$id": "#/properties/broker",
"description": "Deployment"
},
"api": {
"$id": "#/properties/api",
"description": "Deployment"
},
"auditlog": {
"$id": "#/properties/auditlog",
"$ref": "#/definitions/ServiceInstance"
},
"destinations": {
"$id": "#/properties/destinations",
"$ref": "#/definitions/ServiceInstance"
},
"connectivity": {
"type": "object",
"additionalProperties": false,
"required": [
"serviceOfferingName",
"servicePlanName",
"configMapName",
"secretName"
],
"properties": {
"fullnameOverride": {
"type": "string",
"pattern": "[0-9a-z][0-9a-z-.]*",
"maxLength": 63,
"description": "If present then this will be used instead of the generated name"
},
"enabled": {
"type": "boolean",
"default": true,
"description": "Service instance will be created (default: true)"
},
"serviceOfferingName": {
"type": "string",
"default": "connectivity",
"description": "Technical service offering name from service catalog"
},
"servicePlanName": {
"type": "string",
"default": "connectivity_proxy",
"description": "Technical service plan name from service catalog"
},
"parameters": {
"type": "object",
"description": "Some services support the provisioning of additional configuration parameters during the instance creation. For the list of supported parameters, check the documentation of the particular service offering."
},
"config": {
"type": "string",
"description": "File name of JSON configuration file in chart folder. Values from the file will be copied and placed in the parameters for the service instance. If both parameters and config are specified, the values in parameters override those read from config."
},
"configMapName": {
"type": "string",
"description": "Required to add additional connection information, compared to what is available from the service binding."
},
"secretName": {
"type": "string",
"description": "Required to add additional connection information."
}
}
},
"event_mesh": {
"$id": "#/properties/event_mesh",
"$ref": "#/definitions/ServiceInstance"
},
"hana_deployer": {
"$id": "#/properties/hana_deployer",
"type": "object",
"additionalProperties": false,
"required": [
"image",
"bindings",
"resources"
],
"properties": {
"image": {
"$id": "#/properties/hana_deployer/image",
"$ref": "#/definitions/Image"
},
"bindings": {
"$id": "#/properties/hana_deployer/bindings",
"$ref": "#/definitions/Bindings"
},
"resources": {
"$id": "#/properties/hana_deployer/resources",
"$ref": "#/definitions/Resources"
},
"securityContext": {
"type": "object",
"additionalProperties": false,
"required": [],
"properties": {
"user": {
"type": "number",
"default": 1000,
"description": "If present then this user will be used to run the container"
},
"group": {
"type": "number",
"default": 1000,
"description": "If present then this group will be used to run the container"
}
}
},
"env": {
"$id": "#/properties/hana_deployer/env",
"description": "Key-value map of environment variables, which should be added to the Pod spec.",
"type": "object",
"patternProperties": {
"^[-._a-zA-Z][-._a-zA-Z0-9]*$": {
"$comment": "regex above copied from https://github.com/kubernetes/kubernetes/blob/ea0764452222146c47ec826977f49d7001b0ea8c/staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go#L402",
"not": {
"type": ["null", "object", "array"]
}
}
},
"additionalProperties": false,
"default": {}
}
}
},
"html5_apps_deployer": {
"$id": "#/properties/html5_apps_deployer",
"type": "object",
"additionalProperties": false,
"required": [
"image",
"bindings",
"resources",
"cloudService"
],
"properties": {
"image": {
"$id": "#/properties/html5_apps_deployer/image",
"$ref": "#/definitions/Image"
},
"bindings": {
"$id": "#/properties/html5_apps_deployer/bindings",
"$ref": "#/definitions/Bindings"
},
"resources": {
"$id": "#/properties/html5_apps_deployer/resources",
"$ref": "#/definitions/Resources"
},
"env": {
"$id": "#/properties/html5_apps_deployer/env",
"description": "Key-value map of environment variables, which should be added to the Pod spec.",
"type": "object",
"patternProperties": {
"^[-._a-zA-Z][-._a-zA-Z0-9]*$": {
"$comment": "regex above copied from https://github.com/kubernetes/kubernetes/blob/ea0764452222146c47ec826977f49d7001b0ea8c/staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go#L402",
"not": {
"type": ["null", "object", "array"]
}
}
},
"additionalProperties": false,
"default": {}
},
"backendDestinations": {
"$id": "#/properties/html5_apps_deployer/backendDestinations",
"title": "Backend Destinations for HTML5 Application",
"type": "object",
"patternProperties": {
"^[-._a-zA-Z][-._a-zA-Z0-9]*$": {
"description": "Name of the backend Destination",
"required": [
"service"
],
"properties": {
"service": {
"type": "string",
"description": "Target Kubernetes service"
},
"path": {
"type": "string",
"description": "This path will be appended to the URL"
}
}
}
}
},
"cloudService": {
"$id": "#/properties/html5_apps_deployer/cloudService",
"type": "string",
"description": "Name for your business service (unique per subaccount)"
},
"securityContext": {
"type": "object",
"additionalProperties": false,
"required": [],
"properties": {
"user": {
"type": "number",
"default": 1000,
"description": "If present then this user will be used to run the container"
},
"group": {
"type": "number",
"default": 1000,
"description": "If present then this group will be used to run the container"
}
}
}
}
},
"html5_apps_repo_host": {
"$id": "#/properties/html5_apps_repo_host",
"$ref": "#/definitions/ServiceInstance"
},
"html5_apps_repo_runtime": {
"$id": "#/properties/html5_apps_repo_runtime",
"$ref": "#/definitions/ServiceInstance"
},
"xsuaa": {
"$id": "#/properties/xsuaa",
"$ref": "#/definitions/ServiceInstance"
},
"service_manager": {
"$id": "#/properties/service_manager",
"$ref": "#/definitions/ServiceInstance"
},
"hdi_container": {
"$id": "#/properties/hdi_container",
"$ref": "#/definitions/ServiceInstance"
},
"saas_registry": {
"$id": "#/properties/saas_registry",
"$ref": "#/definitions/ServiceInstance"
},
"cis_central": {
"$id": "#/properties/cis_central",
"$ref": "#/definitions/ServiceInstance"
}
},
"definitions": {
"KubernetesName": {
"type": "string",
"$comment": "running `kubectl create secret generic invalid_name` will print this regex",
"pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$"
},
"ServiceInstance": {
"type": "object",
"additionalProperties": false,
"required": [
"serviceOfferingName",
"servicePlanName"
],
"properties": {
"fullnameOverride": {
"type": "string",
"pattern": "[0-9a-z][0-9a-z-.]*",
"maxLength": 63,
"description": "If present then this will be used instead of the generated name"
},
"enabled": {
"type": "boolean",
"default": true,
"description": "Service instance will be created (default: true)"
},
"serviceOfferingName": {
"type": "string",
"description": "Technical service offering name from service catalog"
},
"servicePlanName": {
"type": "string",
"description": "Technical service plan name from service catalog"
},
"environment": {
"type": "string",
"description": "Technical service plan id from service catalog"
},
"parameters": {
"type": "object",
"description": "Some services support the provisioning of additional configuration parameters during the instance creation. For the list of supported parameters, check the documentation of the particular service offering."
},
"config": {
"type": "string",
"description": "File name of JSON configuration file in chart folder. Values from the file will be copied and placed in the parameters for the service instance. If both parameters and config are specified, the values in parameters override those read from config."
}
}
},
"Image": {
"title": "Image configuration",
"type": "object",
"required": [
"repository"
],
"additionalProperties": false,
"properties": {
"repository": {
"title": "Repository of the image",
"description": "Should also include the image name (i.e. everything before the `:` sign).",
"type": "string",
"pattern": "^[\\w-./:]*[@sha256]*$"
},
"tag": {
"title": "Image tag",
"description": "Image tag without the name (everything after the `:` sign, potentially including the `@sha256` section at the end).",
"type": "string",
"pattern": "^((?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:(?:\\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))+)?(?::[0-9]+)?/)?[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?(?:(?:/[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?)+)?)(?::([\\w][\\w.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$"
}
}
},
"Bindings": {
"$id": "#/properties/bindings",
"title": "Service Binding configuration",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^[-._a-zA-Z][-._a-zA-Z0-9]*$": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"fromSecret"
],
"properties": {
"fromSecret": {
"description": "Name of a Kubernetes Secret, with the binding content, compliant to the SAP Kubernetes Service Binding spec",
"$ref": "#/definitions/KubernetesName"
}
}
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"serviceInstanceName": {
"description": "Name of a BTP Operator Service Instance, created by the `service-instance` Helm chart. Can't be used with the `serviceInstanceFullname` option.",
"$ref": "#/definitions/KubernetesName"
},
"serviceInstanceFullname": {
"description": "Full name of a BTP Operator Service Instance. Can't be used with the `serviceInstanceName` option.",
"$ref": "#/definitions/KubernetesName"
},
"externalName": {
"description": "The name for the service binding in SAP BTP",
"type": "string"
},
"secretName": {
"description": "The name of the secret where the credentials are stored.",
"$ref": "#/definitions/KubernetesName"
},
"parameters": {
"description": "Some services support the provisioning of additional configuration parameters during the bind request. For the list of supported parameters, check the documentation of the particular service offering.",
"type": "object"
},
"parametersFrom": {
"description": "List of sources to populate parameters.",
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"description": "Kubernetes Secret as a parameters source.",
"additionalProperties": false,
"properties": {
"secretKeyRef": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"key"
],
"properties": {
"name": {
"description": "Name of a Secret.",
"$ref": "#/definitions/KubernetesName"
},
"key": {
"description": "Key in that Secret, which contains a string that represents the json to include in the set of parameters to be sent to the broker.",
"type": "string"
}
}
}
}
},
{
"type": "object",
"description": "Kubernetes Config Map as a parameters source.",
"additionalProperties": false,
"properties": {
"configMapKeyRef": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"key"
],
"properties": {
"name": {
"description": "Name of a Config Map",
"$ref": "#/definitions/KubernetesName"
},
"key": {
"description": "Key in that Config Map, which contains a string that represents the json to include in the set of parameters to be sent to the broker.",
"type": "string"
}
}
}
}
}
]
}
},
"credentialsRotationPolicy": {
"description": "Holds automatic credentials rotation configuration. For more details, see https://github.com/SAP/sap-btp-service-operator#spec-1",
"type": "object"
}
},
"dependencies": {
"serviceInstanceName": {
"not": {
"required": [
"serviceInstanceFullname"
]
}
},
"serviceInstanceFullname": {
"not": {
"required": [
"serviceInstanceName"
]
}
}
}
}
]
}
}
},
"Resources": {
"title": "Pod resources configuration",
"type": "object",
"additionalProperties": false,
"required": [
"requests",
"limits"
],
"properties": {
"requests": {
"type": "object",
"description": "Minimal required resources for the application to operate, that will be reserved.",
"additionalProperties": false,
"required": [
"cpu",
"memory"
],
"properties": {
"cpu": {
"description": "CPU resource units, as described here https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu",
"type": [
"string",
"number"
]
},
"ephemeral-storage": {
"description": "Size of the local ephemeral storage, measured in bytes. For more info, see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#local-ephemeral-storage",
"type": "string"
},
"memory": {
"description": "Amount of memory, mesaured in bytes. For more info, see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory",
"type": "string"
}
}
},
"limits": {
"type": "object",
"description": "If a process tries to use more resources than specified in the limits, the system kernel terminates the process that attempted the allocation, with an out of memory (OOM) error.",
"additionalProperties": false,
"required": [
"memory"
],
"properties": {
"cpu": {
"description": "CPU resource units, as described here https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu",
"type": [
"string",
"number"
]
},
"ephemeral-storage": {
"description": "Size of the local ephemeral storage, measured in bytes. For more info, see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#local-ephemeral-storage",
"type": "string"
},
"memory": {
"description": "Amount of memory, mesaured in bytes. For more info, see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory",
"type": "string"
}
}
}
}
}
}
}