@sap/cds-dk 7.3.0 → 7.3.2

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.
Files changed (88) hide show
  1. package/bin/add.js +3 -1
  2. package/bin/build.js +2 -1
  3. package/bin/cds.js +1 -1
  4. package/bin/compile/index.js +11 -0
  5. package/bin/extend.js +5 -1
  6. package/bin/init.js +31 -37
  7. package/bin/repl.js +23 -43
  8. package/bin/watch.js +5 -9
  9. package/lib/bind/bindingResolver.js +2 -1
  10. package/lib/bind/index.js +1 -1
  11. package/lib/build/buildPlugin.js +18 -3
  12. package/lib/build/buildTaskEngine.js +2 -1
  13. package/lib/build/buildTaskFactory.js +33 -9
  14. package/lib/build/buildTaskProvider.js +1 -1
  15. package/lib/build/buildTaskProviderFactory.js +15 -61
  16. package/lib/build/constants.js +2 -0
  17. package/lib/build/index.js +5 -2
  18. package/lib/build/plugins.js +35 -0
  19. package/lib/build/provider/edmxBuildPlugin.js +9 -1
  20. package/lib/build/provider/featureToggleBuildPlugin.js +2 -3
  21. package/lib/build/provider/internalBuildPlugin.js +4 -0
  22. package/lib/build/provider/internalBuildTaskProvider.js +1 -1
  23. package/lib/build/provider/java/index.js +12 -6
  24. package/lib/build/provider/nodejs/index.js +3 -2
  25. package/lib/build/util.js +5 -0
  26. package/lib/client/base_command.js +8 -18
  27. package/lib/client/download_legacy.js +2 -10
  28. package/lib/client/params.js +6 -4
  29. package/lib/client/settings_manager.js +38 -35
  30. package/lib/compile/openapi/csdl2openapi.js +1 -1
  31. package/lib/deploy/to-hana/hana.js +53 -35
  32. package/lib/index.js +7 -1
  33. package/lib/init/constants.js +4 -2
  34. package/lib/init/template/_merging/registry-mta.js +12 -0
  35. package/lib/init/template/enterprise-messaging/files/event-mesh.json.hbs +1 -1
  36. package/lib/init/template/enterprise-messaging/index.js +1 -1
  37. package/lib/init/template/enterprise-messaging-shared/files/event-mesh.json.hbs +1 -1
  38. package/lib/init/template/enterprise-messaging-shared/index.js +19 -5
  39. package/lib/init/template/helm/index.js +1 -1
  40. package/lib/init/template/helm/subcharts/content-deployment/Chart.yaml +4 -4
  41. package/lib/init/template/helm/subcharts/content-deployment/templates/_helpers.tpl +4 -2
  42. package/lib/init/template/helm/subcharts/content-deployment/templates/job.yaml +4 -3
  43. package/lib/init/template/helm/subcharts/content-deployment/values.schema.json +9 -83
  44. package/lib/init/template/helm/subcharts/content-deployment/values.yaml +54 -15
  45. package/lib/init/template/helm/subcharts/service-instance/Chart.yaml +4 -4
  46. package/lib/init/template/helm/subcharts/service-instance/templates/serviceinstance.yaml +1 -1
  47. package/lib/init/template/helm/subcharts/service-instance/values.schema.json +0 -17
  48. package/lib/init/template/helm/subcharts/service-instance/values.yaml +28 -0
  49. package/lib/init/template/helm/subcharts/web-application/Chart.yaml +5 -5
  50. package/lib/init/template/helm/subcharts/web-application/templates/_api.tpl +60 -0
  51. package/lib/init/template/helm/subcharts/web-application/templates/_helpers.tpl +34 -73
  52. package/lib/init/template/helm/subcharts/web-application/templates/api-rule.yaml +4 -4
  53. package/lib/init/template/helm/subcharts/web-application/templates/deployment.yaml +96 -17
  54. package/lib/init/template/helm/subcharts/web-application/templates/network-policy.yaml +19 -3
  55. package/lib/init/template/helm/subcharts/web-application/templates/pod-disruption-budget.yaml +3 -3
  56. package/lib/init/template/helm/subcharts/web-application/templates/rbac.yaml +26 -0
  57. package/lib/init/template/helm/subcharts/web-application/templates/secret.yaml +1 -1
  58. package/lib/init/template/helm/subcharts/web-application/templates/service-account.yaml +1 -1
  59. package/lib/init/template/helm/subcharts/web-application/templates/service-binding.yaml +1 -1
  60. package/lib/init/template/helm/subcharts/web-application/templates/service.yaml +21 -3
  61. package/lib/init/template/helm/subcharts/web-application/templates/virtual-service.yaml +36 -0
  62. package/lib/init/template/helm/subcharts/web-application/values.schema.json +535 -142
  63. package/lib/init/template/helm/subcharts/web-application/values.yaml +168 -44
  64. package/lib/init/template/local-messaging/files/package.json.hbs +15 -0
  65. package/lib/init/template/local-messaging/index.js +25 -0
  66. package/lib/init/template/mta/index.js +2 -2
  67. package/lib/init/template/nodejs/files/.gitignore.hbs +3 -0
  68. package/lib/init/template/nodejs/files/.vscode/launch.json +0 -3
  69. package/lib/init/template/notifications/files/mta.yaml.hbs +17 -0
  70. package/lib/init/template/notifications/files/package.json.hbs +5 -0
  71. package/lib/init/template/notifications/index.js +43 -0
  72. package/lib/init/template/typer/files/package.json +1 -1
  73. package/lib/init/util/projectReader.js +1 -0
  74. package/lib/util/pruneAxiosErrors.js +4 -1
  75. package/lib/util/term.js +1 -2
  76. package/lib/watch/livereload-server.js +38 -2
  77. package/lib/watch/node-watch.js +3 -2
  78. package/npm-shrinkwrap.json +438 -2205
  79. package/package.json +2 -2
  80. package/lib/init/template/helm/subcharts/content-deployment/templating.md +0 -37
  81. package/lib/init/template/helm/subcharts/content-deployment/values-lint.yaml +0 -5
  82. package/lib/init/template/helm/subcharts/content-deployment/values.md +0 -1011
  83. package/lib/init/template/helm/subcharts/service-instance/templating.md +0 -18
  84. package/lib/init/template/helm/subcharts/service-instance/values-lint.yaml +0 -2
  85. package/lib/init/template/helm/subcharts/service-instance/values.md +0 -186
  86. package/lib/init/template/helm/subcharts/web-application/templating.md +0 -51
  87. package/lib/init/template/helm/subcharts/web-application/values-lint.yaml +0 -8
  88. 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,2 +0,0 @@
1
- serviceOfferingName: test
2
- servicePlanName: test
@@ -1,186 +0,0 @@
1
- # Schema Docs
2
-
3
- | | |
4
- | ------------------------- | -------------------------------------------------------------------------------------------------------- |
5
- | **Type** | `object` |
6
- | **Additional properties** | [![Not allowed](https://img.shields.io/badge/Not%20allowed-red)](# "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. ![Optional](https://img.shields.io/badge/Optional-yellow) Property `global`
22
-
23
- **Title:** Helm global values
24
-
25
- | | |
26
- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
27
- | **Type** | `object` |
28
- | **Additional properties** | [![Any type: allowed](https://img.shields.io/badge/Any%20type-allowed-green)](# "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. ![Optional](https://img.shields.io/badge/Optional-yellow) 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. ![Optional](https://img.shields.io/badge/Optional-yellow) 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. ![Required](https://img.shields.io/badge/Required-blue) 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. ![Required](https://img.shields.io/badge/Required-blue) 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. ![Optional](https://img.shields.io/badge/Optional-yellow) 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. ![Optional](https://img.shields.io/badge/Optional-yellow) 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. ![Optional](https://img.shields.io/badge/Optional-yellow) Property `parameters`
115
-
116
- | | |
117
- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
118
- | **Type** | `object` |
119
- | **Additional properties** | [![Any type: allowed](https://img.shields.io/badge/Any%20type-allowed-green)](# "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. ![Optional](https://img.shields.io/badge/Optional-yellow) 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. ![Optional](https://img.shields.io/badge/Optional-yellow) 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** | [![Not allowed](https://img.shields.io/badge/Not%20allowed-red)](# "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** | [![Not allowed](https://img.shields.io/badge/Not%20allowed-red)](# "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
- ```
@@ -1,8 +0,0 @@
1
- image:
2
- repository: default
3
- resources:
4
- requests:
5
- cpu: 250m
6
- memory: 1G
7
- limits:
8
- memory: 1G