@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.
Files changed (122) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/bin/activate.js +7 -0
  3. package/bin/add.js +1 -2
  4. package/bin/build/all.js +14 -9
  5. package/bin/cds.js +11 -8
  6. package/bin/compile/index.js +13 -3
  7. package/bin/env.js +16 -25
  8. package/bin/extend.js +8 -0
  9. package/bin/init.js +0 -3
  10. package/bin/login.js +3 -7
  11. package/bin/logout.js +2 -7
  12. package/bin/watch.js +4 -5
  13. package/lib/client/activate.js +1 -1
  14. package/lib/client/helper/errors.js +2 -1
  15. package/lib/client/params.js +4 -3
  16. package/lib/client/pull.js +31 -5
  17. package/lib/client/push.js +3 -3
  18. package/lib/client/settings_manager.js +6 -6
  19. package/lib/client/subscription.js +1 -1
  20. package/lib/compile/asyncapi/channels.js +22 -0
  21. package/lib/compile/asyncapi/components/messageTraits/index.js +89 -0
  22. package/lib/compile/asyncapi/components/messages/index.js +150 -0
  23. package/lib/compile/asyncapi/components/schemas/annotations.js +13 -0
  24. package/lib/compile/asyncapi/components/schemas/array.js +8 -0
  25. package/lib/compile/asyncapi/components/schemas/cache.js +14 -0
  26. package/lib/compile/asyncapi/components/schemas/definition.js +187 -0
  27. package/lib/compile/asyncapi/components/schemas/enum.js +16 -0
  28. package/lib/compile/asyncapi/components/schemas/examples.js +10 -0
  29. package/lib/compile/asyncapi/components/schemas/index.js +14 -0
  30. package/lib/compile/asyncapi/components/schemas/localized.js +29 -0
  31. package/lib/compile/asyncapi/components/schemas/primitiveElement.js +41 -0
  32. package/lib/compile/asyncapi/components/schemas/ref.js +45 -0
  33. package/lib/compile/asyncapi/components/schemas/utils.js +108 -0
  34. package/lib/compile/asyncapi/index.js +226 -0
  35. package/lib/compile/asyncapi/message.js +13 -0
  36. package/lib/compile/asyncapi/utils.js +27 -0
  37. package/lib/compile/index.js +1 -0
  38. package/lib/compile/openapi/csdl2openapi.js +40 -18
  39. package/lib/import/message.js +3 -1
  40. package/lib/import/odata/metadataconverter/MetadataConverter.js +1 -1
  41. package/lib/import/odata/v2parser.js +131 -50
  42. package/lib/import/odata/v4parser.js +160 -68
  43. package/lib/import/openapi/importOpenAPI.js +14 -14
  44. package/lib/init/constants.js +1 -1
  45. package/lib/init/index.js +11 -21
  46. package/lib/init/template/_merging/registry-mta.js +15 -26
  47. package/lib/init/template/approuter/files/package.json +2 -2
  48. package/lib/init/template/approuter/index.js +6 -12
  49. package/lib/init/template/auditlog/files/auditlog.yaml +4 -1
  50. package/lib/init/template/auditlog/index.js +23 -8
  51. package/lib/init/template/cf-manifest/index.js +4 -14
  52. package/lib/init/template/connectivity/files/connectivity-proxy-info.yaml +2 -6
  53. package/lib/init/template/connectivity/files/values.yaml.hbs +5 -8
  54. package/lib/init/template/connectivity/index.js +2 -9
  55. package/lib/init/template/data/index.js +0 -4
  56. package/lib/init/template/destinations/files/destination.yaml +4 -1
  57. package/lib/init/template/destinations/index.js +25 -10
  58. package/lib/init/template/enterprise-messaging/files/event-mesh.yaml +4 -1
  59. package/lib/init/template/enterprise-messaging/files/values.yaml +1 -2
  60. package/lib/init/template/enterprise-messaging/index.js +28 -20
  61. package/lib/init/template/extensibility/index.js +23 -31
  62. package/lib/init/template/hana/files/hana.yaml +4 -1
  63. package/lib/init/template/hana/index.js +44 -24
  64. package/lib/init/template/helm/chart/templates/_helpers.tpl +12 -0
  65. package/lib/init/template/helm/chart/values.root.schema.json +40 -0
  66. package/lib/init/template/helm/chart/values.schema.json +32 -69
  67. package/lib/init/template/helm/index.js +26 -16
  68. package/lib/init/template/helm/subcharts/content-deployment/templates/_helpers.tpl +13 -26
  69. package/lib/init/template/helm/subcharts/content-deployment/templates/job.yaml +3 -3
  70. package/lib/init/template/helm/subcharts/content-deployment/templates/service-account.yaml +2 -0
  71. package/lib/init/template/helm/subcharts/content-deployment/templates/service-binding.yaml +3 -3
  72. package/lib/init/template/helm/subcharts/content-deployment/templating.md +37 -0
  73. package/lib/init/template/helm/subcharts/content-deployment/values.md +182 -185
  74. package/lib/init/template/helm/subcharts/content-deployment/values.schema.json +18 -22
  75. package/lib/init/template/helm/subcharts/content-deployment/values.yaml +2 -0
  76. package/lib/init/template/helm/subcharts/service-instance/Chart.yaml +5 -0
  77. package/lib/init/template/helm/subcharts/service-instance/templates/_helpers.tpl +65 -0
  78. package/lib/init/template/helm/subcharts/service-instance/templates/serviceinstance.yaml +23 -0
  79. package/lib/init/template/helm/subcharts/service-instance/templating.md +18 -0
  80. package/lib/init/template/helm/subcharts/service-instance/values-lint.yaml +2 -0
  81. package/lib/init/template/helm/subcharts/service-instance/values.md +186 -0
  82. package/lib/init/template/helm/subcharts/service-instance/values.schema.json +102 -0
  83. package/lib/init/template/helm/subcharts/service-instance/values.yaml +15 -0
  84. package/lib/init/template/html5-repo/files/html5-apps-repo-host.yaml +4 -1
  85. package/lib/init/template/html5-repo/index.js +30 -21
  86. package/lib/init/template/java/index.js +2 -5
  87. package/lib/init/template/kibana-logging/index.js +7 -10
  88. package/lib/init/template/lint/index.js +2 -3
  89. package/lib/init/template/mta/files/mta.yaml.hbs +4 -2
  90. package/lib/init/template/mta/index.js +7 -11
  91. package/lib/init/template/mtx/index.js +0 -5
  92. package/lib/init/template/multitenancy/files/java/package.json +16 -7
  93. package/lib/init/template/multitenancy/files/mta.yaml.hbs +11 -3
  94. package/lib/init/template/multitenancy/files/saas-registry-secret.yaml +9 -0
  95. package/lib/init/template/multitenancy/files/saas-registry.yaml +4 -17
  96. package/lib/init/template/multitenancy/files/service-manager.yaml +4 -1
  97. package/lib/init/template/multitenancy/files/values.yaml.hbs +15 -3
  98. package/lib/init/template/multitenancy/index.js +56 -31
  99. package/lib/init/template/nodejs/index.js +4 -7
  100. package/lib/init/template/notebook/index.js +1 -3
  101. package/lib/init/template/pipeline/index.js +2 -5
  102. package/lib/init/template/samples/index.js +6 -11
  103. package/lib/init/template/templateBase.js +10 -17
  104. package/lib/init/template/toggles/index.js +2 -6
  105. package/lib/init/template/xsuaa/files/values.yaml.hbs +0 -1
  106. package/lib/init/template/xsuaa/files/xsuaa.yaml +4 -1
  107. package/lib/init/template/xsuaa/index.js +27 -23
  108. package/lib/init/types.d.ts +0 -81
  109. package/lib/init/util/merge.js +23 -25
  110. package/lib/init/util/projectReader.js +27 -24
  111. package/lib/lint/Linter.js +31 -13
  112. package/lib/watch/livereload-server.js +21 -14
  113. package/lib/watch/node-watch.js +51 -49
  114. package/npm-shrinkwrap.json +551 -458
  115. package/package.json +2 -2
  116. package/readme.md +5 -0
  117. package/lib/init/template/connectivity/files/connectivity-binding.yaml +0 -9
  118. package/lib/init/template/connectivity/files/connectivity.yaml +0 -1
  119. package/lib/init/template/multitenancy/files/xsuaa.yaml +0 -1
  120. /package/lib/init/template/hana/files/{chart.yaml → hana-deployer.yaml} +0 -0
  121. /package/lib/init/template/html5-repo/files/{chart.yaml → html5-apps-deployer.yaml} +0 -0
  122. /package/lib/init/template/multitenancy/files/{chart.yaml → sidecar.yaml} +0 -0
@@ -0,0 +1,37 @@
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
+ bindings:
28
+ hana:
29
+ serviceInstanceName: hana-{{ .Release.Name }}
30
+ secretName: hana-secret-{{ .Release.Name }}
31
+ parametersFrom:
32
+ - secretKeyRef:
33
+ key: my-key
34
+ name: test-RELEASE-NAME
35
+ serviceManager:
36
+ fromSecret: manual-secret-{{ .Release.Name }}
37
+ ```