@sap/cds-dk 6.5.2 → 6.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/bin/activate.js +7 -0
- package/bin/add.js +1 -2
- package/bin/build/all.js +14 -9
- package/bin/cds.js +11 -8
- package/bin/compile/index.js +13 -3
- package/bin/env.js +16 -25
- package/bin/extend.js +8 -0
- package/bin/init.js +0 -3
- package/bin/login.js +3 -7
- package/bin/logout.js +2 -7
- package/bin/watch.js +4 -5
- package/lib/client/activate.js +1 -1
- package/lib/client/helper/errors.js +2 -1
- package/lib/client/params.js +4 -3
- package/lib/client/pull.js +31 -5
- package/lib/client/push.js +3 -3
- package/lib/client/settings_manager.js +6 -6
- package/lib/client/subscription.js +1 -1
- package/lib/compile/asyncapi/channels.js +22 -0
- package/lib/compile/asyncapi/components/messageTraits/index.js +89 -0
- package/lib/compile/asyncapi/components/messages/index.js +150 -0
- package/lib/compile/asyncapi/components/schemas/annotations.js +13 -0
- package/lib/compile/asyncapi/components/schemas/array.js +8 -0
- package/lib/compile/asyncapi/components/schemas/cache.js +14 -0
- package/lib/compile/asyncapi/components/schemas/definition.js +187 -0
- package/lib/compile/asyncapi/components/schemas/enum.js +16 -0
- package/lib/compile/asyncapi/components/schemas/examples.js +10 -0
- package/lib/compile/asyncapi/components/schemas/index.js +14 -0
- package/lib/compile/asyncapi/components/schemas/localized.js +29 -0
- package/lib/compile/asyncapi/components/schemas/primitiveElement.js +41 -0
- package/lib/compile/asyncapi/components/schemas/ref.js +45 -0
- package/lib/compile/asyncapi/components/schemas/utils.js +108 -0
- package/lib/compile/asyncapi/index.js +226 -0
- package/lib/compile/asyncapi/message.js +13 -0
- package/lib/compile/asyncapi/utils.js +27 -0
- package/lib/compile/index.js +1 -0
- package/lib/compile/openapi/csdl2openapi.js +40 -18
- package/lib/import/message.js +3 -1
- package/lib/import/odata/metadataconverter/MetadataConverter.js +1 -1
- package/lib/import/odata/v2parser.js +131 -50
- package/lib/import/odata/v4parser.js +160 -68
- package/lib/import/openapi/importOpenAPI.js +14 -14
- package/lib/init/constants.js +1 -1
- package/lib/init/index.js +11 -21
- package/lib/init/template/_merging/registry-mta.js +15 -26
- package/lib/init/template/approuter/files/package.json +2 -2
- package/lib/init/template/approuter/index.js +6 -12
- package/lib/init/template/auditlog/files/auditlog.yaml +4 -1
- package/lib/init/template/auditlog/index.js +23 -8
- package/lib/init/template/cf-manifest/index.js +4 -14
- package/lib/init/template/connectivity/files/connectivity-proxy-info.yaml +2 -6
- package/lib/init/template/connectivity/files/values.yaml.hbs +5 -8
- package/lib/init/template/connectivity/index.js +2 -9
- package/lib/init/template/data/index.js +0 -4
- package/lib/init/template/destinations/files/destination.yaml +4 -1
- package/lib/init/template/destinations/index.js +25 -10
- package/lib/init/template/enterprise-messaging/files/event-mesh.yaml +4 -1
- package/lib/init/template/enterprise-messaging/files/values.yaml +1 -2
- package/lib/init/template/enterprise-messaging/index.js +28 -20
- package/lib/init/template/extensibility/index.js +23 -31
- package/lib/init/template/hana/files/hana.yaml +4 -1
- package/lib/init/template/hana/index.js +44 -24
- package/lib/init/template/helm/chart/templates/_helpers.tpl +12 -0
- package/lib/init/template/helm/chart/values.root.schema.json +40 -0
- package/lib/init/template/helm/chart/values.schema.json +32 -69
- package/lib/init/template/helm/index.js +26 -16
- package/lib/init/template/helm/subcharts/content-deployment/templates/_helpers.tpl +13 -26
- package/lib/init/template/helm/subcharts/content-deployment/templates/job.yaml +3 -3
- package/lib/init/template/helm/subcharts/content-deployment/templates/service-account.yaml +2 -0
- package/lib/init/template/helm/subcharts/content-deployment/templates/service-binding.yaml +3 -3
- package/lib/init/template/helm/subcharts/content-deployment/templating.md +37 -0
- package/lib/init/template/helm/subcharts/content-deployment/values.md +182 -185
- package/lib/init/template/helm/subcharts/content-deployment/values.schema.json +18 -22
- package/lib/init/template/helm/subcharts/content-deployment/values.yaml +2 -0
- package/lib/init/template/helm/subcharts/service-instance/Chart.yaml +5 -0
- package/lib/init/template/helm/subcharts/service-instance/templates/_helpers.tpl +65 -0
- package/lib/init/template/helm/subcharts/service-instance/templates/serviceinstance.yaml +23 -0
- package/lib/init/template/helm/subcharts/service-instance/templating.md +18 -0
- package/lib/init/template/helm/subcharts/service-instance/values-lint.yaml +2 -0
- package/lib/init/template/helm/subcharts/service-instance/values.md +186 -0
- package/lib/init/template/helm/subcharts/service-instance/values.schema.json +102 -0
- package/lib/init/template/helm/subcharts/service-instance/values.yaml +15 -0
- package/lib/init/template/html5-repo/files/html5-apps-repo-host.yaml +4 -1
- package/lib/init/template/html5-repo/index.js +30 -21
- package/lib/init/template/java/index.js +2 -5
- package/lib/init/template/kibana-logging/index.js +7 -10
- package/lib/init/template/lint/index.js +2 -3
- package/lib/init/template/mta/files/mta.yaml.hbs +4 -2
- package/lib/init/template/mta/index.js +7 -11
- package/lib/init/template/mtx/index.js +0 -5
- package/lib/init/template/multitenancy/files/java/package.json +16 -7
- package/lib/init/template/multitenancy/files/mta.yaml.hbs +11 -3
- package/lib/init/template/multitenancy/files/saas-registry-secret.yaml +9 -0
- package/lib/init/template/multitenancy/files/saas-registry.yaml +4 -17
- package/lib/init/template/multitenancy/files/service-manager.yaml +4 -1
- package/lib/init/template/multitenancy/files/values.yaml.hbs +15 -3
- package/lib/init/template/multitenancy/index.js +56 -31
- package/lib/init/template/nodejs/index.js +4 -7
- package/lib/init/template/notebook/index.js +1 -3
- package/lib/init/template/pipeline/index.js +2 -5
- package/lib/init/template/samples/index.js +6 -11
- package/lib/init/template/templateBase.js +10 -17
- package/lib/init/template/toggles/index.js +2 -6
- package/lib/init/template/xsuaa/files/values.yaml.hbs +0 -1
- package/lib/init/template/xsuaa/files/xsuaa.yaml +4 -1
- package/lib/init/template/xsuaa/index.js +27 -23
- package/lib/init/types.d.ts +0 -81
- package/lib/init/util/merge.js +23 -25
- package/lib/init/util/projectReader.js +27 -24
- package/lib/lint/Linter.js +31 -13
- package/lib/watch/livereload-server.js +21 -14
- package/lib/watch/node-watch.js +51 -49
- package/npm-shrinkwrap.json +551 -458
- package/package.json +2 -2
- package/readme.md +5 -0
- package/lib/init/template/connectivity/files/connectivity-binding.yaml +0 -9
- package/lib/init/template/connectivity/files/connectivity.yaml +0 -1
- package/lib/init/template/multitenancy/files/xsuaa.yaml +0 -1
- /package/lib/init/template/hana/files/{chart.yaml → hana-deployer.yaml} +0 -0
- /package/lib/init/template/html5-repo/files/{chart.yaml → html5-apps-deployer.yaml} +0 -0
- /package/lib/init/template/multitenancy/files/{chart.yaml → sidecar.yaml} +0 -0
|
@@ -84,6 +84,12 @@
|
|
|
84
84
|
"type": "string",
|
|
85
85
|
"pattern": "[0-9a-z][0-9a-z-.]*"
|
|
86
86
|
},
|
|
87
|
+
"serviceAccountName": {
|
|
88
|
+
"$id": "#/properties/serviceAccountName",
|
|
89
|
+
"title": "Service Account name",
|
|
90
|
+
"description": "Name of the Service Account assigned to pods.",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
87
93
|
"image": {
|
|
88
94
|
"$id": "#/properties/image",
|
|
89
95
|
"title": "Image configuration",
|
|
@@ -224,7 +230,7 @@
|
|
|
224
230
|
"properties": {
|
|
225
231
|
"name": {
|
|
226
232
|
"description": "Name of a ConfigMap.",
|
|
227
|
-
"
|
|
233
|
+
"type": "string"
|
|
228
234
|
},
|
|
229
235
|
"key": {
|
|
230
236
|
"description": "Key in that ConfigMap, which value will be used.",
|
|
@@ -239,7 +245,7 @@
|
|
|
239
245
|
"properties": {
|
|
240
246
|
"name": {
|
|
241
247
|
"description": "Name of a Secret.",
|
|
242
|
-
"
|
|
248
|
+
"type": "string"
|
|
243
249
|
},
|
|
244
250
|
"key": {
|
|
245
251
|
"description": "Key in that Secret, which value will be used.",
|
|
@@ -254,7 +260,7 @@
|
|
|
254
260
|
"properties": {
|
|
255
261
|
"containerName": {
|
|
256
262
|
"description": "Name of a Container.",
|
|
257
|
-
"
|
|
263
|
+
"type": "string"
|
|
258
264
|
},
|
|
259
265
|
"resource": {
|
|
260
266
|
"description": "Only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.",
|
|
@@ -306,7 +312,7 @@
|
|
|
306
312
|
"properties": {
|
|
307
313
|
"name": {
|
|
308
314
|
"description": "Name of a ConfigMap.",
|
|
309
|
-
"
|
|
315
|
+
"type": "string"
|
|
310
316
|
},
|
|
311
317
|
"key": {
|
|
312
318
|
"description": "Key in that ConfigMap, which value will be used.",
|
|
@@ -321,7 +327,7 @@
|
|
|
321
327
|
"properties": {
|
|
322
328
|
"name": {
|
|
323
329
|
"description": "Name of a Secret.",
|
|
324
|
-
"
|
|
330
|
+
"type": "string"
|
|
325
331
|
},
|
|
326
332
|
"key": {
|
|
327
333
|
"description": "Key in that Secret, which value will be used.",
|
|
@@ -336,7 +342,7 @@
|
|
|
336
342
|
"properties": {
|
|
337
343
|
"containerName": {
|
|
338
344
|
"description": "Name of a Container.",
|
|
339
|
-
"
|
|
345
|
+
"type": "string"
|
|
340
346
|
},
|
|
341
347
|
"resource": {
|
|
342
348
|
"description": "Only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.",
|
|
@@ -388,11 +394,6 @@
|
|
|
388
394
|
"name": {
|
|
389
395
|
"description": "Name of a ConfigMap.",
|
|
390
396
|
"type": "string"
|
|
391
|
-
},
|
|
392
|
-
"tpl": {
|
|
393
|
-
"description": "Flag which tells whether the name is a template string or not.",
|
|
394
|
-
"type": "boolean",
|
|
395
|
-
"default": false
|
|
396
397
|
}
|
|
397
398
|
},
|
|
398
399
|
"required": [ "name" ],
|
|
@@ -411,11 +412,6 @@
|
|
|
411
412
|
"name": {
|
|
412
413
|
"description": "Name of a Secret.",
|
|
413
414
|
"type": "string"
|
|
414
|
-
},
|
|
415
|
-
"tpl": {
|
|
416
|
-
"description": "Flag which tells whether the name is a template string or not.",
|
|
417
|
-
"type": "boolean",
|
|
418
|
-
"default": false
|
|
419
415
|
}
|
|
420
416
|
},
|
|
421
417
|
"required": [ "name" ],
|
|
@@ -454,7 +450,7 @@
|
|
|
454
450
|
"properties": {
|
|
455
451
|
"fromSecret": {
|
|
456
452
|
"description": "Name of a Kubernetes Secret, with the binding content, compliant to the SAP Kubernetes Service Binding spec https://github.tools.sap/Kubernetes-Service-Bindings/doc/",
|
|
457
|
-
"
|
|
453
|
+
"type": "string"
|
|
458
454
|
}
|
|
459
455
|
}
|
|
460
456
|
},
|
|
@@ -464,11 +460,11 @@
|
|
|
464
460
|
"properties": {
|
|
465
461
|
"serviceInstanceName": {
|
|
466
462
|
"description": "Name of a BTP Operator Service Instance, created by the `service-instance` Helm chart. Can't be used with the `serviceInstanceFullname` option.",
|
|
467
|
-
"
|
|
463
|
+
"type": "string"
|
|
468
464
|
},
|
|
469
465
|
"serviceInstanceFullname": {
|
|
470
466
|
"description": "Full name of a BTP Operator Service Instance. Can't be used with the `serviceInstanceName` option.",
|
|
471
|
-
"
|
|
467
|
+
"type": "string"
|
|
472
468
|
},
|
|
473
469
|
"externalName": {
|
|
474
470
|
"description": "The name for the service binding in SAP BTP",
|
|
@@ -476,7 +472,7 @@
|
|
|
476
472
|
},
|
|
477
473
|
"secretName": {
|
|
478
474
|
"description": "The name of the secret where the credentials are stored.",
|
|
479
|
-
"
|
|
475
|
+
"type": "string"
|
|
480
476
|
},
|
|
481
477
|
"parameters": {
|
|
482
478
|
"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.",
|
|
@@ -502,7 +498,7 @@
|
|
|
502
498
|
"properties": {
|
|
503
499
|
"name": {
|
|
504
500
|
"description": "Name of a Secret.",
|
|
505
|
-
"
|
|
501
|
+
"type": "string"
|
|
506
502
|
},
|
|
507
503
|
"key": {
|
|
508
504
|
"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.",
|
|
@@ -527,7 +523,7 @@
|
|
|
527
523
|
"properties": {
|
|
528
524
|
"name": {
|
|
529
525
|
"description": "Name of a Config Map",
|
|
530
|
-
"
|
|
526
|
+
"type": "string"
|
|
531
527
|
},
|
|
532
528
|
"key": {
|
|
533
529
|
"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.",
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{{/*
|
|
2
|
+
Expand the name of the chart.
|
|
3
|
+
*/}}
|
|
4
|
+
{{- define "service-instance.name" -}}
|
|
5
|
+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
|
6
|
+
{{- end }}
|
|
7
|
+
|
|
8
|
+
{{/*
|
|
9
|
+
Create a default fully qualified app name.
|
|
10
|
+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
11
|
+
If release name contains chart name it will be used as a full name.
|
|
12
|
+
*/}}
|
|
13
|
+
{{- define "service-instance.fullname" -}}
|
|
14
|
+
{{- if .Values.fullnameOverride }}
|
|
15
|
+
{{- if gt (len .Values.fullnameOverride) 63 }}
|
|
16
|
+
{{- fail (printf "name exceeds 63 characters: '%s'" .Values.fullnameOverride) }}
|
|
17
|
+
{{- end }}
|
|
18
|
+
{{- .Values.fullnameOverride }}
|
|
19
|
+
{{- else }}
|
|
20
|
+
{{- $name := default .Chart.Name .Values.nameOverride }}
|
|
21
|
+
{{- if not (hasPrefix .Release.Name $name)}}
|
|
22
|
+
{{- $name = printf "%s-%s" .Release.Name $name }}
|
|
23
|
+
{{- end }}
|
|
24
|
+
{{- if gt (len $name) 63 }}
|
|
25
|
+
{{- fail (printf "name exceeds 63 characters: '%s'" $name) }}
|
|
26
|
+
{{- end }}
|
|
27
|
+
{{- $name }}
|
|
28
|
+
{{- end }}
|
|
29
|
+
{{- end }}
|
|
30
|
+
|
|
31
|
+
{{/*
|
|
32
|
+
Create chart name and version as used by the chart label.
|
|
33
|
+
*/}}
|
|
34
|
+
{{- define "service-instance.chart" -}}
|
|
35
|
+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
|
36
|
+
{{- end }}
|
|
37
|
+
|
|
38
|
+
{{/*
|
|
39
|
+
Common labels
|
|
40
|
+
*/}}
|
|
41
|
+
{{- define "service-instance.labels" -}}
|
|
42
|
+
helm.sh/revision: {{ .Release.Revision | quote }}
|
|
43
|
+
helm.sh/chart: {{ include "service-instance.chart" . }}
|
|
44
|
+
{{ include "service-instance.selectorLabels" . }}
|
|
45
|
+
{{- if .Chart.AppVersion }}
|
|
46
|
+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
|
47
|
+
{{- end }}
|
|
48
|
+
{{- end }}
|
|
49
|
+
|
|
50
|
+
{{/*
|
|
51
|
+
Selector labels
|
|
52
|
+
*/}}
|
|
53
|
+
{{- define "service-instance.selectorLabels" -}}
|
|
54
|
+
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
55
|
+
app.kubernetes.io/name: {{ include "service-instance.name" . }}
|
|
56
|
+
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
57
|
+
{{- if .Values.global}}
|
|
58
|
+
{{- if .Values.global.component }}
|
|
59
|
+
app.kubernetes.io/component:{{ .Values.global.component }}
|
|
60
|
+
{{- end }}
|
|
61
|
+
{{- if .Values.global.partOf }}
|
|
62
|
+
app.kubernetes.io/partOf: {{ .Values.global.partOf }}
|
|
63
|
+
{{- end }}
|
|
64
|
+
{{- end }}
|
|
65
|
+
{{- end }}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
apiVersion: services.cloud.sap.com/v1
|
|
3
|
+
kind: ServiceInstance
|
|
4
|
+
metadata:
|
|
5
|
+
labels: {{- include "service-instance.labels" . | nindent 4 }}
|
|
6
|
+
name: {{ include "service-instance.fullname" . }}
|
|
7
|
+
spec:
|
|
8
|
+
serviceOfferingName: {{ .Values.serviceOfferingName }}
|
|
9
|
+
servicePlanName: {{ .Values.servicePlanName }}
|
|
10
|
+
{{- if .Values.externalName }}
|
|
11
|
+
externalName: {{ .Values.externalName }}
|
|
12
|
+
{{- end }}
|
|
13
|
+
{{- if .Values.customTags }}
|
|
14
|
+
customTags: {{ .Values.customTags | toYaml | nindent 4 }}
|
|
15
|
+
{{- end }}
|
|
16
|
+
{{- if or .Values.parameters .Values.jsonParameters }}
|
|
17
|
+
{{- $parameters := .Values.parameters | default (dict) }}
|
|
18
|
+
{{- $jsonParameters := .Values.jsonParameters | default "{}" }}
|
|
19
|
+
parameters: {{- $jsonParameters | fromJson | merge $parameters | toYaml | nindent 4 }}
|
|
20
|
+
{{- end }}
|
|
21
|
+
{{- if .Values.parametersFrom }}
|
|
22
|
+
parametersFrom: {{ tpl (.Values.parametersFrom | toYaml) $ | nindent 4}}
|
|
23
|
+
{{- end }}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Templating Values
|
|
2
|
+
|
|
3
|
+
This functionality is enabled only for some of the templates provided by this helm chart. The feature itself comes with some performance costs that you should keep in mind. More details on this feature can be found in the official [documentation](https://helm.sh/docs/howto/charts_tips_and_tricks/#using-the-tpl-function).
|
|
4
|
+
|
|
5
|
+
The following values can be used in the template:
|
|
6
|
+
|
|
7
|
+
1. [Global values](https://helm.sh/docs/chart_template_guide/subcharts_and_globals/)
|
|
8
|
+
2. Values passed to the chart directly
|
|
9
|
+
3. [Built-in objects](https://helm.sh/docs/chart_template_guide/builtin_objects/)
|
|
10
|
+
|
|
11
|
+
Here's a full list of values with examples, where you can use templates:
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
parametersFrom:
|
|
15
|
+
- secretKeyRef:
|
|
16
|
+
key: my-key
|
|
17
|
+
name: test-{{Release.Name}}
|
|
18
|
+
```
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# Schema Docs
|
|
2
|
+
|
|
3
|
+
| | |
|
|
4
|
+
| ------------------------- | -------------------------------------------------------------------------------------------------------- |
|
|
5
|
+
| **Type** | `object` |
|
|
6
|
+
| **Additional properties** | [](# "Additional Properties not allowed.") |
|
|
7
|
+
|
|
8
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
9
|
+
| ---------------------------------------------- | ------- | --------------- | ---------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
10
|
+
| - [global](#global ) | No | object | No | - | Helm global values |
|
|
11
|
+
| - [nameOverride](#nameOverride ) | No | string | No | - | Chart name override |
|
|
12
|
+
| - [fullnameOverride](#fullnameOverride ) | No | string | No | - | Override for the \`.fullname\` helper function. |
|
|
13
|
+
| + [serviceOfferingName](#serviceOfferingName ) | No | string | No | - | The name of the SAP BTP service offering. |
|
|
14
|
+
| + [servicePlanName](#servicePlanName ) | No | string | No | - | The plan to use for the service instance. |
|
|
15
|
+
| - [externalName](#externalName ) | No | string | No | - | The name for the service instance in SAP BTP. |
|
|
16
|
+
| - [customTags](#customTags ) | No | array of string | No | - | List of custom tags describing the ServiceInstance, will be copied to \`ServiceBinding\` secret in the key called \`tags\`. |
|
|
17
|
+
| - [parameters](#parameters ) | No | object | No | - | Some services support the provisioning of additional configuration parameters. For the list of supported parameters, check the documentation of the particular service offering. |
|
|
18
|
+
| - [jsonParameters](#jsonParameters ) | No | string | No | - | Some services support the provisioning of additional configuration parameters. For the list of supported parameters, check the documentation of the particular service offering. |
|
|
19
|
+
| - [parametersFrom](#parametersFrom ) | No | array of object | No | - | List of sources to populate parameters. |
|
|
20
|
+
|
|
21
|
+
## <a name="global"></a>1.  Property `global<br />`
|
|
22
|
+
|
|
23
|
+
**Title:** Helm global values
|
|
24
|
+
|
|
25
|
+
| | |
|
|
26
|
+
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
27
|
+
| **Type** | `object` |
|
|
28
|
+
| **Additional properties** | [](# "Additional Properties of any type are allowed.") |
|
|
29
|
+
|
|
30
|
+
**Description:** For more information, see https://helm.sh/docs/chart_template_guide/subcharts_and_globals/#global-chart-values
|
|
31
|
+
|
|
32
|
+
## <a name="nameOverride"></a>2.  Property `nameOverride<br />`
|
|
33
|
+
|
|
34
|
+
**Title:** Chart name override
|
|
35
|
+
|
|
36
|
+
| | |
|
|
37
|
+
| -------- | -------- |
|
|
38
|
+
| **Type** | `string` |
|
|
39
|
+
|
|
40
|
+
**Description:** Will be used instead of the `.Chart.Name`, e.g. when generating the Deployment name.
|
|
41
|
+
|
|
42
|
+
| Restrictions | |
|
|
43
|
+
| --------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
44
|
+
| **Must match regular expression** | ```[0-9a-z][0-9a-z-.]*``` [Test](https://regex101.com/?regex=%5B0-9a-z%5D%5B0-9a-z-.%5D%2A) |
|
|
45
|
+
|
|
46
|
+
## <a name="fullnameOverride"></a>3.  Property `fullnameOverride<br />`
|
|
47
|
+
|
|
48
|
+
**Title:** Override for the `.fullname` helper function.
|
|
49
|
+
|
|
50
|
+
| | |
|
|
51
|
+
| -------- | -------- |
|
|
52
|
+
| **Type** | `string` |
|
|
53
|
+
|
|
54
|
+
**Description:** Will be used as an override for the `.fullname` helper function (i.e. `.Release.Name-.Chart.Name`).
|
|
55
|
+
|
|
56
|
+
| Restrictions | |
|
|
57
|
+
| --------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
58
|
+
| **Must match regular expression** | ```[0-9a-z][0-9a-z-.]*``` [Test](https://regex101.com/?regex=%5B0-9a-z%5D%5B0-9a-z-.%5D%2A) |
|
|
59
|
+
|
|
60
|
+
## <a name="serviceOfferingName"></a>4.  Property `serviceOfferingName<br />`
|
|
61
|
+
|
|
62
|
+
| | |
|
|
63
|
+
| -------- | -------- |
|
|
64
|
+
| **Type** | `string` |
|
|
65
|
+
|
|
66
|
+
**Description:** The name of the SAP BTP service offering.
|
|
67
|
+
|
|
68
|
+
| Restrictions | |
|
|
69
|
+
| --------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
70
|
+
| **Must match regular expression** | ```[0-9a-z][0-9a-z-.]*``` [Test](https://regex101.com/?regex=%5B0-9a-z%5D%5B0-9a-z-.%5D%2A) |
|
|
71
|
+
|
|
72
|
+
## <a name="servicePlanName"></a>5.  Property `servicePlanName<br />`
|
|
73
|
+
|
|
74
|
+
| | |
|
|
75
|
+
| -------- | -------- |
|
|
76
|
+
| **Type** | `string` |
|
|
77
|
+
|
|
78
|
+
**Description:** The plan to use for the service instance.
|
|
79
|
+
|
|
80
|
+
| Restrictions | |
|
|
81
|
+
| --------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
82
|
+
| **Must match regular expression** | ```[0-9a-z][0-9a-z-.]*``` [Test](https://regex101.com/?regex=%5B0-9a-z%5D%5B0-9a-z-.%5D%2A) |
|
|
83
|
+
|
|
84
|
+
## <a name="externalName"></a>6.  Property `externalName<br />`
|
|
85
|
+
|
|
86
|
+
| | |
|
|
87
|
+
| -------- | -------- |
|
|
88
|
+
| **Type** | `string` |
|
|
89
|
+
|
|
90
|
+
**Description:** The name for the service instance in SAP BTP.
|
|
91
|
+
|
|
92
|
+
| Restrictions | |
|
|
93
|
+
| --------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
94
|
+
| **Must match regular expression** | ```[0-9a-z][0-9a-z-.]*``` [Test](https://regex101.com/?regex=%5B0-9a-z%5D%5B0-9a-z-.%5D%2A) |
|
|
95
|
+
|
|
96
|
+
## <a name="customTags"></a>7.  Property `customTags<br />`
|
|
97
|
+
|
|
98
|
+
| | |
|
|
99
|
+
| -------- | ----------------- |
|
|
100
|
+
| **Type** | `array of string` |
|
|
101
|
+
|
|
102
|
+
**Description:** List of custom tags describing the ServiceInstance, will be copied to `ServiceBinding` secret in the key called `tags`.
|
|
103
|
+
|
|
104
|
+
| Each item of this array must be | Description |
|
|
105
|
+
| ------------------------------------- | ----------- |
|
|
106
|
+
| [customTags items](#customTags_items) | - |
|
|
107
|
+
|
|
108
|
+
### <a name="autogenerated_heading_2"></a>7.1. customTags items<br />
|
|
109
|
+
|
|
110
|
+
| | |
|
|
111
|
+
| -------- | -------- |
|
|
112
|
+
| **Type** | `string` |
|
|
113
|
+
|
|
114
|
+
## <a name="parameters"></a>8.  Property `parameters<br />`
|
|
115
|
+
|
|
116
|
+
| | |
|
|
117
|
+
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
118
|
+
| **Type** | `object` |
|
|
119
|
+
| **Additional properties** | [](# "Additional Properties of any type are allowed.") |
|
|
120
|
+
|
|
121
|
+
**Description:** Some services support the provisioning of additional configuration parameters. For the list of supported parameters, check the documentation of the particular service offering.
|
|
122
|
+
|
|
123
|
+
## <a name="jsonParameters"></a>9.  Property `jsonParameters<br />`
|
|
124
|
+
|
|
125
|
+
| | |
|
|
126
|
+
| -------- | -------- |
|
|
127
|
+
| **Type** | `string` |
|
|
128
|
+
|
|
129
|
+
**Description:** Some services support the provisioning of additional configuration parameters. For the list of supported parameters, check the documentation of the particular service offering.
|
|
130
|
+
|
|
131
|
+
## <a name="parametersFrom"></a>10.  Property `parametersFrom<br />`
|
|
132
|
+
|
|
133
|
+
| | |
|
|
134
|
+
| -------- | ----------------- |
|
|
135
|
+
| **Type** | `array of object` |
|
|
136
|
+
|
|
137
|
+
**Description:** List of sources to populate parameters.
|
|
138
|
+
|
|
139
|
+
| Each item of this array must be | Description |
|
|
140
|
+
| --------------------------------------------- | ----------------------------------------- |
|
|
141
|
+
| [parametersFrom items](#parametersFrom_items) | Kubernetes Secret as a parameters source. |
|
|
142
|
+
|
|
143
|
+
### <a name="autogenerated_heading_3"></a>10.1. parametersFrom items<br />
|
|
144
|
+
|
|
145
|
+
| | |
|
|
146
|
+
| ------------------------- | -------------------------------------------------------------------------------------------------------- |
|
|
147
|
+
| **Type** | `object` |
|
|
148
|
+
| **Additional properties** | [](# "Additional Properties not allowed.") |
|
|
149
|
+
|
|
150
|
+
**Description:** Kubernetes Secret as a parameters source.
|
|
151
|
+
|
|
152
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
153
|
+
| ----------------------------------------------------- | ------- | ------ | ---------- | ---------- | ----------------------------------------- |
|
|
154
|
+
| - [secretKeyRef](#parametersFrom_items_secretKeyRef ) | No | object | No | - | Kubernetes Secret as a parameters source. |
|
|
155
|
+
|
|
156
|
+
#### <a name="parametersFrom_items_secretKeyRef"></a>10.1.1. Property `secretKeyRef<br />`
|
|
157
|
+
|
|
158
|
+
| | |
|
|
159
|
+
| ------------------------- | -------------------------------------------------------------------------------------------------------- |
|
|
160
|
+
| **Type** | `object` |
|
|
161
|
+
| **Additional properties** | [](# "Additional Properties not allowed.") |
|
|
162
|
+
|
|
163
|
+
**Description:** Kubernetes Secret as a parameters source.
|
|
164
|
+
|
|
165
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
166
|
+
| -------------------------------------------------- | ------- | ------ | ---------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------- |
|
|
167
|
+
| + [name](#parametersFrom_items_secretKeyRef_name ) | No | string | No | - | Name of a Secret. |
|
|
168
|
+
| + [key](#parametersFrom_items_secretKeyRef_key ) | No | string | No | - | 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. |
|
|
169
|
+
|
|
170
|
+
##### <a name="parametersFrom_items_secretKeyRef_name"></a>10.1.1.1. Property `name<br />`
|
|
171
|
+
|
|
172
|
+
| | |
|
|
173
|
+
| -------- | -------- |
|
|
174
|
+
| **Type** | `string` |
|
|
175
|
+
|
|
176
|
+
**Description:** Name of a Secret.
|
|
177
|
+
|
|
178
|
+
##### <a name="parametersFrom_items_secretKeyRef_key"></a>10.1.1.2. Property `key<br />`
|
|
179
|
+
|
|
180
|
+
| | |
|
|
181
|
+
| -------- | -------- |
|
|
182
|
+
| **Type** | `string` |
|
|
183
|
+
|
|
184
|
+
**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.
|
|
185
|
+
|
|
186
|
+
----------------------------------------------------------------------------------------------------------------------------
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "https://github.tools.sap/cki/web-application-cf/blob/main/values.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"serviceOfferingName",
|
|
7
|
+
"servicePlanName"
|
|
8
|
+
],
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"global": {
|
|
12
|
+
"$id": "#/properties/global",
|
|
13
|
+
"type": "object",
|
|
14
|
+
"title": "Helm global values",
|
|
15
|
+
"description": "For more information, see https://helm.sh/docs/chart_template_guide/subcharts_and_globals/#global-chart-values",
|
|
16
|
+
"x-ignore-untested": true
|
|
17
|
+
},
|
|
18
|
+
"nameOverride": {
|
|
19
|
+
"$id": "#/properties/nameOverride",
|
|
20
|
+
"title": "Chart name override",
|
|
21
|
+
"description": "Will be used instead of the `.Chart.Name`, e.g. when generating the Deployment name.",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "[0-9a-z][0-9a-z-.]*"
|
|
24
|
+
},
|
|
25
|
+
"fullnameOverride": {
|
|
26
|
+
"$id": "#/properties/fullnameOverride",
|
|
27
|
+
"title": "Override for the `.fullname` helper function.",
|
|
28
|
+
"description": "Will be used as an override for the `.fullname` helper function (i.e. `.Release.Name-.Chart.Name`).",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "[0-9a-z][0-9a-z-.]*"
|
|
31
|
+
},
|
|
32
|
+
"serviceOfferingName": {
|
|
33
|
+
"$id": "#/properties/serviceOfferingName",
|
|
34
|
+
"description": "The name of the SAP BTP service offering.",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"pattern": "[0-9a-z][0-9a-z-.]*"
|
|
37
|
+
},
|
|
38
|
+
"servicePlanName": {
|
|
39
|
+
"$id": "#/properties/servicePlanName",
|
|
40
|
+
"description": "The plan to use for the service instance.",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"pattern": "[0-9a-z][0-9a-z-.]*"
|
|
43
|
+
},
|
|
44
|
+
"externalName": {
|
|
45
|
+
"$id": "#/properties/externalName",
|
|
46
|
+
"description": "The name for the service instance in SAP BTP.",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"pattern": "[0-9a-z][0-9a-z-.]*"
|
|
49
|
+
},
|
|
50
|
+
"customTags": {
|
|
51
|
+
"$id": "#/properties/customTags",
|
|
52
|
+
"description": "List of custom tags describing the ServiceInstance, will be copied to `ServiceBinding` secret in the key called `tags`.",
|
|
53
|
+
"type": "array",
|
|
54
|
+
"uniqueItems": true,
|
|
55
|
+
"items": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"parameters": {
|
|
60
|
+
"$id": "#/properties/parameters",
|
|
61
|
+
"description": "Some services support the provisioning of additional configuration parameters. For the list of supported parameters, check the documentation of the particular service offering.",
|
|
62
|
+
"type": "object"
|
|
63
|
+
},
|
|
64
|
+
"jsonParameters": {
|
|
65
|
+
"$id": "#/properties/jsonParameters",
|
|
66
|
+
"description": "Some services support the provisioning of additional configuration parameters. For the list of supported parameters, check the documentation of the particular service offering.",
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"parametersFrom": {
|
|
70
|
+
"$id": "#/properties/parametersFrom",
|
|
71
|
+
"description": "List of sources to populate parameters.",
|
|
72
|
+
"type": "array",
|
|
73
|
+
"uniqueItems": true,
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"description": "Kubernetes Secret as a parameters source.",
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"properties": {
|
|
79
|
+
"secretKeyRef": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"description": "Kubernetes Secret as a parameters source.",
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"required": [
|
|
84
|
+
"name",
|
|
85
|
+
"key"
|
|
86
|
+
],
|
|
87
|
+
"properties": {
|
|
88
|
+
"name": {
|
|
89
|
+
"description": "Name of a Secret.",
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"key": {
|
|
93
|
+
"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.",
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# serviceOfferingName: feature-flags
|
|
2
|
+
# servicePlanName: plan-name
|
|
3
|
+
# externalName: feature-flags-test
|
|
4
|
+
# customTags:
|
|
5
|
+
# - foo
|
|
6
|
+
# - bar
|
|
7
|
+
# parameters:
|
|
8
|
+
# key: val
|
|
9
|
+
# parametersFrom:
|
|
10
|
+
# - secretKeyRef:
|
|
11
|
+
# name: my-secret
|
|
12
|
+
# key: secret-parameter
|
|
13
|
+
# - configMapKeyRef:
|
|
14
|
+
# name: my-cm
|
|
15
|
+
# key: cm-parameter
|