@sap/cds-dk 7.2.0 → 7.3.1
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/bin/activate.js +2 -2
- package/bin/add.js +1 -1
- package/bin/build.js +6 -3
- package/bin/compile/index.js +9 -5
- package/bin/env.js +0 -3
- package/bin/extend.js +29 -3
- package/bin/import.js +7 -3
- package/bin/init.js +31 -37
- package/bin/push.js +10 -6
- package/bin/repl.js +23 -43
- package/bin/watch.js +5 -9
- package/lib/bind/bindingResolver.js +2 -1
- package/lib/bind/index.js +1 -1
- package/lib/build/{buildTaskHandler.js → buildPlugin.js} +40 -27
- package/lib/build/buildTaskEngine.js +75 -74
- package/lib/build/buildTaskFactory.js +39 -32
- package/lib/build/buildTaskProvider.js +24 -19
- package/lib/build/buildTaskProviderFactory.js +125 -58
- package/lib/build/constants.js +6 -4
- package/lib/build/index.js +7 -3
- package/lib/build/plugins.js +35 -0
- package/lib/build/provider/{buildTaskHandlerEdmx.js → edmxBuildPlugin.js} +11 -7
- package/lib/build/provider/{buildTaskHandlerFeatureToggles.js → featureToggleBuildPlugin.js} +5 -5
- package/lib/build/provider/fiori/index.js +5 -6
- package/lib/build/provider/hana/index.js +54 -30
- package/lib/build/provider/{buildTaskHandlerInternal.js → internalBuildPlugin.js} +14 -10
- package/lib/build/provider/{buildTaskProviderInternal.js → internalBuildTaskProvider.js} +27 -28
- package/lib/build/provider/java/index.js +30 -24
- package/lib/build/provider/mtx/index.js +4 -4
- package/lib/build/provider/mtx/resourcesTarBuilder.js +8 -8
- package/lib/build/provider/mtx-extension/index.js +17 -9
- package/lib/build/provider/mtx-sidecar/index.js +17 -11
- package/lib/build/provider/nodejs/index.js +14 -13
- package/lib/build/util.js +5 -0
- package/lib/client/auth_manager.js +6 -12
- package/lib/client/base_command.js +1 -1
- package/lib/client/download_legacy.js +43 -0
- package/lib/client/params.js +6 -0
- package/lib/client/push.js +41 -1
- package/lib/client/settings_manager.js +28 -17
- package/lib/compile/openapi/csdl2openapi.js +1 -1
- package/lib/env/schema.js +36 -0
- package/lib/env/schemas/cds-rc.json +101 -0
- package/lib/import/common.js +23 -10
- package/lib/import/importapi.js +2 -2
- package/lib/import/message.js +3 -1
- package/lib/import/odata/v4parser.js +23 -7
- package/lib/index.js +11 -0
- package/lib/init/constants.js +5 -2
- package/lib/init/index.js +2 -3
- package/lib/init/template/_merging/registry-mta.js +33 -0
- package/lib/init/template/approuter/files/mta.yaml.hbs +1 -1
- package/lib/init/template/approuter/index.js +9 -9
- package/lib/init/template/connectivity/index.js +5 -4
- package/lib/init/template/destination/index.js +2 -5
- package/lib/init/template/helm/subcharts/content-deployment/Chart.yaml +4 -4
- package/lib/init/template/helm/subcharts/content-deployment/templates/_helpers.tpl +4 -2
- package/lib/init/template/helm/subcharts/content-deployment/templates/job.yaml +4 -3
- package/lib/init/template/helm/subcharts/content-deployment/values.schema.json +9 -83
- package/lib/init/template/helm/subcharts/content-deployment/values.yaml +54 -15
- package/lib/init/template/helm/subcharts/service-instance/Chart.yaml +4 -4
- package/lib/init/template/helm/subcharts/service-instance/templates/serviceinstance.yaml +1 -1
- package/lib/init/template/helm/subcharts/service-instance/values.schema.json +0 -17
- package/lib/init/template/helm/subcharts/service-instance/values.yaml +28 -0
- package/lib/init/template/helm/subcharts/web-application/Chart.yaml +5 -5
- package/lib/init/template/helm/subcharts/web-application/templates/_api.tpl +60 -0
- package/lib/init/template/helm/subcharts/web-application/templates/_helpers.tpl +34 -73
- package/lib/init/template/helm/subcharts/web-application/templates/api-rule.yaml +4 -4
- package/lib/init/template/helm/subcharts/web-application/templates/deployment.yaml +96 -17
- package/lib/init/template/helm/subcharts/web-application/templates/network-policy.yaml +19 -3
- package/lib/init/template/helm/subcharts/web-application/templates/pod-disruption-budget.yaml +3 -3
- package/lib/init/template/helm/subcharts/web-application/templates/rbac.yaml +26 -0
- package/lib/init/template/helm/subcharts/web-application/templates/secret.yaml +1 -1
- package/lib/init/template/helm/subcharts/web-application/templates/service-account.yaml +1 -1
- package/lib/init/template/helm/subcharts/web-application/templates/service-binding.yaml +1 -1
- package/lib/init/template/helm/subcharts/web-application/templates/service.yaml +21 -3
- package/lib/init/template/helm/subcharts/web-application/templates/virtual-service.yaml +36 -0
- package/lib/init/template/helm/subcharts/web-application/values.schema.json +535 -142
- package/lib/init/template/helm/subcharts/web-application/values.yaml +168 -44
- package/lib/init/template/html5-repo/index.js +27 -3
- package/lib/init/template/mta/index.js +9 -3
- package/lib/init/template/nodejs/files/.vscode/launch.json +0 -3
- package/lib/init/template/notifications/files/mta.yaml.hbs +17 -0
- package/lib/init/template/notifications/files/notificationtypes.json.hbs +16 -0
- package/lib/init/template/notifications/files/package.json.hbs +14 -0
- package/lib/init/template/notifications/index.js +52 -0
- package/lib/init/template/postgres/files/mta.yaml.hbs +27 -0
- package/lib/init/template/postgres/files/package.json.hbs +5 -0
- package/lib/init/template/postgres/index.js +52 -0
- package/lib/init/util/projectReader.js +0 -1
- package/lib/util/pruneAxiosErrors.js +25 -8
- package/lib/util/term.js +1 -2
- package/lib/watch/livereload-server.js +38 -2
- package/lib/watch/node-watch.js +3 -2
- package/npm-shrinkwrap.json +334 -335
- package/package.json +2 -2
- package/lib/init/template/helm/subcharts/content-deployment/templating.md +0 -37
- package/lib/init/template/helm/subcharts/content-deployment/values-lint.yaml +0 -5
- package/lib/init/template/helm/subcharts/content-deployment/values.md +0 -1011
- package/lib/init/template/helm/subcharts/service-instance/templating.md +0 -18
- package/lib/init/template/helm/subcharts/service-instance/values-lint.yaml +0 -2
- package/lib/init/template/helm/subcharts/service-instance/values.md +0 -186
- package/lib/init/template/helm/subcharts/web-application/templating.md +0 -51
- package/lib/init/template/helm/subcharts/web-application/values-lint.yaml +0 -8
- package/lib/init/template/helm/subcharts/web-application/values.md +0 -1363
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
```
|
|
@@ -1,186 +0,0 @@
|
|
|
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`
|
|
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`
|
|
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`
|
|
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`
|
|
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`
|
|
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`
|
|
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`
|
|
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
|
|
109
|
-
|
|
110
|
-
| | |
|
|
111
|
-
| -------- | -------- |
|
|
112
|
-
| **Type** | `string` |
|
|
113
|
-
|
|
114
|
-
## <a name="parameters"></a>8.  Property `parameters`
|
|
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`
|
|
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`
|
|
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
|
|
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`
|
|
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`
|
|
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`
|
|
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
|
-
----------------------------------------------------------------------------------------------------------------------------
|
|
@@ -1,51 +0,0 @@
|
|
|
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
|
-
serviceAccountName: my-service-account-{{ .Release.Name }}
|
|
15
|
-
env:
|
|
16
|
-
- name: key1
|
|
17
|
-
value: value1-{{ .Release.Name }}
|
|
18
|
-
- name: key2
|
|
19
|
-
configMapKeyRef:
|
|
20
|
-
name: my-configmap-{{ .Release.Name }}
|
|
21
|
-
key: my-key
|
|
22
|
-
envFrom:
|
|
23
|
-
- configMapRef:
|
|
24
|
-
name: my-configmap1-{{ .Release.Name }}
|
|
25
|
-
- secretRef:
|
|
26
|
-
name: my-secret-ref1-{{ .Release.Name }}
|
|
27
|
-
additionalVolumes:
|
|
28
|
-
- name: my-volume
|
|
29
|
-
secret:
|
|
30
|
-
secretName: my-secret-{{ .Release.Name }}
|
|
31
|
-
volumeMount:
|
|
32
|
-
mountPath: /etc/mysecret
|
|
33
|
-
readOnly: true
|
|
34
|
-
expose:
|
|
35
|
-
host: "{{ .Release.Name }}-app"
|
|
36
|
-
networkSecurity:
|
|
37
|
-
ingress:
|
|
38
|
-
- namespace: "{{ .Release.Namespace }}"
|
|
39
|
-
podLabelsSelector:
|
|
40
|
-
app: "{{ .Release.Name }}-my-app"
|
|
41
|
-
bindings:
|
|
42
|
-
hana:
|
|
43
|
-
serviceInstanceName: hana-{{ .Release.Name }}
|
|
44
|
-
secretName: hana-secret-{{ .Release.Name }}
|
|
45
|
-
parametersFrom:
|
|
46
|
-
- secretKeyRef:
|
|
47
|
-
key: my-key
|
|
48
|
-
name: test-RELEASE-NAME
|
|
49
|
-
serviceManager:
|
|
50
|
-
fromSecret: manual-secret-{{ .Release.Name }}
|
|
51
|
-
```
|