@sap/cds-dk 6.8.3 → 7.0.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/bin/activate.js +15 -7
- package/bin/add.js +29 -15
- package/bin/bind.js +49 -116
- package/bin/build.js +114 -0
- package/bin/cds.js +67 -24
- package/bin/compile/index.js +2 -2
- package/bin/deploy/index.js +46 -39
- package/bin/deploy/to-hana.js +11 -8
- package/bin/deploy/to-postgres.js +8 -2
- package/bin/deploy/to-sqlite.js +0 -1
- package/bin/env.js +75 -41
- package/bin/eval.js +3 -3
- package/bin/extend.js +17 -10
- package/bin/help.js +22 -21
- package/bin/import.js +10 -7
- package/bin/init.js +38 -17
- package/bin/login.js +69 -55
- package/bin/logout.js +12 -9
- package/bin/migrate.js +10 -4
- package/bin/pull.js +12 -5
- package/bin/push.js +24 -13
- package/bin/repl.js +1 -0
- package/bin/run.js +25 -0
- package/bin/subscribe.js +13 -8
- package/bin/unsubscribe.js +15 -8
- package/bin/upgrade.js +15 -9
- package/bin/util/log.js +24 -0
- package/bin/version.js +124 -0
- package/bin/watch.js +1 -35
- package/bin/watched.js +39 -0
- package/lib/bind/KubernetesApiAccessor.js +2 -2
- package/lib/bind/bindingManager.js +1 -1
- package/lib/bind/bindingUtil.js +0 -9
- package/lib/bind/cfKeyProvider.js +10 -72
- package/lib/bind/index.js +114 -0
- package/lib/bind/kubernetesCredentialsProvider.js +2 -2
- package/lib/bind/userCdsrcJsonStorageProvider.js +7 -44
- package/lib/build/buildTaskEngine.js +355 -0
- package/lib/build/buildTaskFactory.js +284 -0
- package/lib/build/buildTaskHandler.js +240 -0
- package/lib/build/buildTaskProvider.js +22 -0
- package/lib/build/buildTaskProviderFactory.js +182 -0
- package/lib/build/constants.js +56 -0
- package/lib/build/index.js +21 -0
- package/lib/build/provider/buildTaskHandlerEdmx.js +83 -0
- package/lib/build/provider/buildTaskHandlerFeatureToggles.js +132 -0
- package/lib/build/provider/buildTaskHandlerInternal.js +228 -0
- package/lib/build/provider/buildTaskProviderInternal.js +370 -0
- package/lib/build/provider/fiori/index.js +167 -0
- package/lib/build/provider/hana/2migration.js +179 -0
- package/lib/build/provider/hana/index.js +522 -0
- package/lib/build/provider/hana/migrationtable.js +472 -0
- package/lib/build/provider/hana/template/.hdiconfig-all +163 -0
- package/lib/build/provider/hana/template/.hdiconfig-cloud +137 -0
- package/lib/build/provider/hana/template/.hdinamespace +4 -0
- package/lib/build/provider/hana/template/package.json +12 -0
- package/lib/build/provider/hana/template/undeploy.json +5 -0
- package/lib/build/provider/java/index.js +93 -0
- package/lib/build/provider/java-cf/index.js +1 -0
- package/lib/build/provider/mtx/index.js +37 -0
- package/lib/build/provider/mtx/resourcesTarBuilder.js +94 -0
- package/lib/build/provider/mtx-extension/index.js +131 -0
- package/lib/build/provider/mtx-sidecar/index.js +138 -0
- package/lib/build/provider/node-cf/index.js +1 -0
- package/lib/build/provider/nodejs/index.js +178 -0
- package/lib/build/util.js +263 -0
- package/lib/cds.js +9 -21
- package/lib/client/auth_manager.js +39 -16
- package/lib/client/helper/dependency_helper.js +7 -6
- package/lib/client/push.js +2 -1
- package/lib/client/settings_manager.js +10 -39
- package/lib/deploy/to-hana/hana.js +273 -0
- package/lib/deploy/to-hana/hdiDeployUtil.js +68 -0
- package/lib/deploy/to-hana/mtaUtil.js +171 -0
- package/lib/import/asyncapi/importAsyncAPI.js +3 -2
- package/lib/import/asyncapi/index.js +5 -2
- package/lib/import/asyncapi/parserContext.js +67 -26
- package/lib/import/asyncapi/utils.js +34 -3
- package/lib/import/common.js +40 -30
- package/lib/import/importapi.js +36 -35
- package/lib/index.js +12 -17
- package/lib/init/constants.js +36 -71
- package/lib/init/index.js +18 -52
- package/lib/init/template/_merging/registry-mta.js +21 -3
- package/lib/init/template/approuter/files/mta.yaml.hbs +29 -29
- package/lib/init/template/approuter/files/values.yaml.hbs +5 -5
- package/lib/init/template/approuter/files/xs-app.json.hbs +8 -2
- package/lib/init/template/approuter/index.js +7 -8
- package/lib/init/template/auditlog/files/mta.yaml.hbs +5 -5
- package/lib/init/template/auditlog/files/package.json.hbs +13 -13
- package/lib/init/template/auditlog/index.js +3 -3
- package/lib/init/template/cf-manifest/files/manifest.yml.hbs +22 -22
- package/lib/init/template/cf-manifest/files/services-manifest.yml.hbs +3 -3
- package/lib/init/template/connectivity/files/mta.yaml.hbs +14 -0
- package/lib/init/template/connectivity/files/package.json.hbs +17 -0
- package/lib/init/template/connectivity/index.js +21 -4
- package/lib/init/template/data/index.js +5 -1
- package/lib/init/template/destination/files/mta.yaml.hbs +14 -0
- package/lib/init/template/destination/files/package.json.hbs +17 -0
- package/lib/init/template/{destinations → destination}/index.js +19 -13
- package/lib/init/template/enterprise-messaging/files/event-mesh.json.hbs +3 -3
- package/lib/init/template/enterprise-messaging/files/mta.yaml.hbs +5 -5
- package/lib/init/template/enterprise-messaging/files/package.json.hbs +9 -9
- package/lib/init/template/enterprise-messaging/files/xs-security.json.hbs +19 -0
- package/lib/init/template/enterprise-messaging/index.js +27 -6
- package/lib/init/template/enterprise-messaging-shared/files/event-mesh.json.hbs +3 -3
- package/lib/init/template/enterprise-messaging-shared/files/mta.yaml.hbs +5 -5
- package/lib/init/template/enterprise-messaging-shared/files/package.json.hbs +9 -9
- package/lib/init/template/enterprise-messaging-shared/index.js +4 -5
- package/lib/init/template/extensibility/files/package.json.hbs +10 -10
- package/lib/init/template/extensibility/index.js +8 -9
- package/lib/init/template/file-based-messaging/files/package.json.hbs +9 -9
- package/lib/init/template/file-based-messaging/index.js +3 -4
- package/lib/init/template/hana/files/db/package.json +1 -1
- package/lib/init/template/hana/files/mta.yaml.hbs +21 -21
- package/lib/init/template/hana/files/package.json.hbs +16 -22
- package/lib/init/template/hana/files/values.yaml.hbs +1 -1
- package/lib/init/template/hana/index.js +5 -15
- package/lib/init/template/helm/files/Chart.yaml.hbs +4 -4
- package/lib/init/template/helm/files/values.yaml.hbs +6 -6
- package/lib/init/template/helm/index.js +5 -10
- package/lib/init/template/helm/subcharts/content-deployment/Chart.yaml +2 -0
- package/lib/init/template/helm/subcharts/content-deployment/templates/_helpers.tpl +37 -31
- package/lib/init/template/helm/subcharts/content-deployment/templates/job.yaml +13 -14
- package/lib/init/template/helm/subcharts/content-deployment/templates/secret.yaml +2 -2
- package/lib/init/template/helm/subcharts/content-deployment/templates/service-account.yaml +1 -1
- package/lib/init/template/helm/subcharts/content-deployment/templates/service-binding.yaml +3 -3
- package/lib/init/template/helm/subcharts/content-deployment/values.md +116 -116
- package/lib/init/template/helm/subcharts/service-instance/Chart.yaml +2 -0
- package/lib/init/template/helm/subcharts/service-instance/templates/_helpers.tpl +9 -9
- package/lib/init/template/helm/subcharts/service-instance/templates/serviceinstance.yaml +2 -2
- package/lib/init/template/helm/subcharts/service-instance/values.md +15 -15
- package/lib/init/template/helm/subcharts/web-application/Chart.yaml +2 -0
- package/lib/init/template/helm/subcharts/web-application/templates/NOTES.txt +15 -0
- package/lib/init/template/helm/subcharts/web-application/templates/_helpers.tpl +23 -23
- 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 +17 -17
- package/lib/init/template/helm/subcharts/web-application/templates/network-policy.yaml +24 -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/secret.yaml +2 -2
- 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 +3 -3
- package/lib/init/template/helm/subcharts/web-application/templates/service.yaml +3 -3
- package/lib/init/template/helm/subcharts/web-application/values.md +141 -123
- package/lib/init/template/helm/subcharts/web-application/values.schema.json +7 -0
- package/lib/init/template/helm/subcharts/web-application/values.yaml +1 -0
- package/lib/init/template/html5-repo/index.js +4 -5
- package/lib/init/template/java/index.js +5 -5
- package/lib/init/template/kibana-logging/files/mta.yaml.hbs +5 -5
- package/lib/init/template/kibana-logging/files/package.json.hbs +9 -9
- package/lib/init/template/kibana-logging/index.js +3 -4
- package/lib/init/template/lint/index.js +3 -3
- package/lib/init/template/mta/files/mta.yaml.hbs +14 -14
- package/lib/init/template/mta/files/package.json +5 -0
- package/lib/init/template/mta/index.js +12 -13
- package/lib/init/template/mtx/index.js +2 -2
- package/lib/init/template/multitenancy/files/mta.yaml.hbs +29 -27
- package/lib/init/template/multitenancy/files/package.json.hbs +17 -14
- package/lib/init/template/multitenancy/files/package.sidecar.json.hbs +7 -7
- package/lib/init/template/multitenancy/files/values.yaml.hbs +19 -19
- package/lib/init/template/multitenancy/index.js +14 -16
- package/lib/init/template/nodejs/files/package.json.hbs +1 -1
- package/lib/init/template/nodejs/index.js +5 -8
- package/lib/init/template/redis-messaging/files/mta.yaml.hbs +5 -5
- package/lib/init/template/redis-messaging/files/package.json.hbs +9 -9
- package/lib/init/template/redis-messaging/index.js +4 -5
- package/lib/init/template/sample/files/app/_i18n/i18n.properties +43 -0
- package/lib/init/template/sample/files/app/_i18n/i18n_de.properties +14 -0
- package/lib/init/template/sample/files/app/admin-books/fiori-service.cds +114 -0
- package/lib/init/template/sample/files/app/admin-books/webapp/Component.js +8 -0
- package/lib/init/template/sample/files/app/admin-books/webapp/i18n/i18n.properties +11 -0
- package/lib/init/template/sample/files/app/admin-books/webapp/manifest.json +129 -0
- package/lib/init/template/sample/files/app/appconfig/fioriSandboxConfig.json +57 -0
- package/lib/init/template/sample/files/app/common.cds +263 -0
- package/lib/init/template/sample/files/app/index.html +30 -0
- package/lib/init/template/sample/files/app/services.cds +5 -0
- package/lib/init/template/sample/files/db/data/sap.capire.bookshop-Authors.csv +5 -0
- package/lib/init/template/sample/files/db/data/sap.capire.bookshop-Books.csv +6 -0
- package/lib/init/template/sample/files/db/data/sap.capire.bookshop-Books_texts.csv +5 -0
- package/lib/init/template/sample/files/db/data/sap.capire.bookshop-Genres.csv +16 -0
- package/lib/init/template/sample/files/db/schema.cds +31 -0
- package/lib/init/template/sample/files/nodejs/admin-service.js +12 -0
- package/lib/init/template/sample/files/nodejs/cat-service.js +26 -0
- package/lib/init/template/sample/files/srv/admin-service.cds +5 -0
- package/lib/init/template/sample/files/srv/cat-service.cds +16 -0
- package/lib/init/template/sample/index.js +24 -0
- package/lib/init/template/sample-tiny/index.js +39 -0
- package/lib/init/template/samples/index.js +5 -56
- package/lib/init/template/sqlite/files/package.json.hbs +13 -13
- package/lib/init/template/sqlite/index.js +2 -2
- package/lib/init/template/templateBase.js +24 -1
- package/lib/init/template/toggles/files/package.json.hbs +10 -10
- package/lib/init/template/toggles/index.js +3 -3
- package/lib/init/template/typer/files/gitignore +1 -0
- package/lib/init/template/typer/files/package.json +8 -0
- package/lib/init/template/typer/files/xsconfig.json +9 -0
- package/lib/init/template/typer/index.js +36 -0
- package/lib/init/template/xsuaa/files/mta.yaml.hbs +12 -12
- package/lib/init/template/xsuaa/files/package.json.hbs +13 -13
- package/lib/init/template/xsuaa/files/values.yaml.hbs +8 -8
- package/lib/init/template/xsuaa/index.js +8 -19
- package/lib/init/util/merge.js +73 -59
- package/lib/init/util/mvn.js +21 -17
- package/lib/init/util/projectReader.js +49 -87
- package/lib/init/util/xml.js +14 -23
- package/lib/util/cfUtil.js +366 -0
- package/lib/util/command.js +3 -3
- package/lib/util/gitUtil.js +55 -0
- package/lib/util/version.js +27 -0
- package/npm-shrinkwrap.json +337 -275
- package/package.json +6 -6
- package/CHANGELOG.md +0 -1460
- package/bin/build/all.js +0 -88
- package/bin/build/index.js +0 -82
- package/lib/compile/index.js +0 -14
- /package/lib/init/template/{samples → sample-tiny}/files/nodejs/db/data/my.bookshop-Books.csv +0 -0
- /package/lib/init/template/{samples → sample-tiny}/files/nodejs/db/data-model.cds +0 -0
- /package/lib/init/template/{samples → sample-tiny}/files/nodejs/srv/cat-service.cds.hbs +0 -0
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
apiVersion: services.cloud.sap.com/v1
|
|
3
3
|
kind: ServiceInstance
|
|
4
4
|
metadata:
|
|
5
|
-
labels: {{- include "service-instance.labels" . | nindent 4 }}
|
|
6
|
-
name: {{ include "service-instance.fullname" . }}
|
|
5
|
+
labels: {{- include "service-instance.internal.labels" . | nindent 4 }}
|
|
6
|
+
name: {{ include "service-instance.internal.fullname" . }}
|
|
7
7
|
spec:
|
|
8
8
|
serviceOfferingName: {{ .Values.serviceOfferingName }}
|
|
9
9
|
servicePlanName: {{ .Values.servicePlanName }}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
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
19
|
| - [parametersFrom](#parametersFrom ) | No | array of object | No | - | List of sources to populate parameters. |
|
|
20
20
|
|
|
21
|
-
## <a name="global"></a>1.  Property `global
|
|
21
|
+
## <a name="global"></a>1.  Property `global`
|
|
22
22
|
|
|
23
23
|
**Title:** Helm global values
|
|
24
24
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
**Description:** For more information, see https://helm.sh/docs/chart_template_guide/subcharts_and_globals/#global-chart-values
|
|
31
31
|
|
|
32
|
-
## <a name="nameOverride"></a>2.  Property `nameOverride
|
|
32
|
+
## <a name="nameOverride"></a>2.  Property `nameOverride`
|
|
33
33
|
|
|
34
34
|
**Title:** Chart name override
|
|
35
35
|
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
| --------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
44
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
45
|
|
|
46
|
-
## <a name="fullnameOverride"></a>3.  Property `fullnameOverride
|
|
46
|
+
## <a name="fullnameOverride"></a>3.  Property `fullnameOverride`
|
|
47
47
|
|
|
48
48
|
**Title:** Override for the `.fullname` helper function.
|
|
49
49
|
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
| --------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
58
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
59
|
|
|
60
|
-
## <a name="serviceOfferingName"></a>4.  Property `serviceOfferingName
|
|
60
|
+
## <a name="serviceOfferingName"></a>4.  Property `serviceOfferingName`
|
|
61
61
|
|
|
62
62
|
| | |
|
|
63
63
|
| -------- | -------- |
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
| --------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
70
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
71
|
|
|
72
|
-
## <a name="servicePlanName"></a>5.  Property `servicePlanName
|
|
72
|
+
## <a name="servicePlanName"></a>5.  Property `servicePlanName`
|
|
73
73
|
|
|
74
74
|
| | |
|
|
75
75
|
| -------- | -------- |
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
| --------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
82
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
83
|
|
|
84
|
-
## <a name="externalName"></a>6.  Property `externalName
|
|
84
|
+
## <a name="externalName"></a>6.  Property `externalName`
|
|
85
85
|
|
|
86
86
|
| | |
|
|
87
87
|
| -------- | -------- |
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
| --------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
94
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
95
|
|
|
96
|
-
## <a name="customTags"></a>7.  Property `customTags
|
|
96
|
+
## <a name="customTags"></a>7.  Property `customTags`
|
|
97
97
|
|
|
98
98
|
| | |
|
|
99
99
|
| -------- | ----------------- |
|
|
@@ -105,13 +105,13 @@
|
|
|
105
105
|
| ------------------------------------- | ----------- |
|
|
106
106
|
| [customTags items](#customTags_items) | - |
|
|
107
107
|
|
|
108
|
-
### <a name="autogenerated_heading_2"></a>7.1. customTags items
|
|
108
|
+
### <a name="autogenerated_heading_2"></a>7.1. customTags items
|
|
109
109
|
|
|
110
110
|
| | |
|
|
111
111
|
| -------- | -------- |
|
|
112
112
|
| **Type** | `string` |
|
|
113
113
|
|
|
114
|
-
## <a name="parameters"></a>8.  Property `parameters
|
|
114
|
+
## <a name="parameters"></a>8.  Property `parameters`
|
|
115
115
|
|
|
116
116
|
| | |
|
|
117
117
|
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
|
|
121
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
122
|
|
|
123
|
-
## <a name="jsonParameters"></a>9.  Property `jsonParameters
|
|
123
|
+
## <a name="jsonParameters"></a>9.  Property `jsonParameters`
|
|
124
124
|
|
|
125
125
|
| | |
|
|
126
126
|
| -------- | -------- |
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
|
|
129
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
130
|
|
|
131
|
-
## <a name="parametersFrom"></a>10.  Property `parametersFrom
|
|
131
|
+
## <a name="parametersFrom"></a>10.  Property `parametersFrom`
|
|
132
132
|
|
|
133
133
|
| | |
|
|
134
134
|
| -------- | ----------------- |
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
| --------------------------------------------- | ----------------------------------------- |
|
|
141
141
|
| [parametersFrom items](#parametersFrom_items) | Kubernetes Secret as a parameters source. |
|
|
142
142
|
|
|
143
|
-
### <a name="autogenerated_heading_3"></a>10.1. parametersFrom items
|
|
143
|
+
### <a name="autogenerated_heading_3"></a>10.1. parametersFrom items
|
|
144
144
|
|
|
145
145
|
| | |
|
|
146
146
|
| ------------------------- | -------------------------------------------------------------------------------------------------------- |
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
| ----------------------------------------------------- | ------- | ------ | ---------- | ---------- | ----------------------------------------- |
|
|
154
154
|
| - [secretKeyRef](#parametersFrom_items_secretKeyRef ) | No | object | No | - | Kubernetes Secret as a parameters source. |
|
|
155
155
|
|
|
156
|
-
#### <a name="parametersFrom_items_secretKeyRef"></a>10.1.1. Property `secretKeyRef
|
|
156
|
+
#### <a name="parametersFrom_items_secretKeyRef"></a>10.1.1. Property `secretKeyRef`
|
|
157
157
|
|
|
158
158
|
| | |
|
|
159
159
|
| ------------------------- | -------------------------------------------------------------------------------------------------------- |
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
| + [name](#parametersFrom_items_secretKeyRef_name ) | No | string | No | - | Name of a Secret. |
|
|
168
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
169
|
|
|
170
|
-
##### <a name="parametersFrom_items_secretKeyRef_name"></a>10.1.1.1. Property `name
|
|
170
|
+
##### <a name="parametersFrom_items_secretKeyRef_name"></a>10.1.1.1. Property `name`
|
|
171
171
|
|
|
172
172
|
| | |
|
|
173
173
|
| -------- | -------- |
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
|
|
176
176
|
**Description:** Name of a Secret.
|
|
177
177
|
|
|
178
|
-
##### <a name="parametersFrom_items_secretKeyRef_key"></a>10.1.1.2. Property `key
|
|
178
|
+
##### <a name="parametersFrom_items_secretKeyRef_key"></a>10.1.1.2. Property `key`
|
|
179
179
|
|
|
180
180
|
| | |
|
|
181
181
|
| -------- | -------- |
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{{- $deprecations := list -}}
|
|
2
|
+
|
|
3
|
+
{{/*
|
|
4
|
+
v0.9.0 deprecations
|
|
5
|
+
*/}}
|
|
6
|
+
{{- if not (hasKey .Values "readOnlyRootFilesystem") -}}
|
|
7
|
+
{{- $deprecations = append $deprecations "You are currently using the default value of readOnlyRootFilesystem, which is currently false, but will change to true soon. We recommend setting the value to true now and validate that your application works with the new default." -}}
|
|
8
|
+
{{- end -}}
|
|
9
|
+
|
|
10
|
+
{{- if gt (len $deprecations) 0 -}}
|
|
11
|
+
Found usage of {{len $deprecations}} deprecated {{ len $deprecations | plural "feature" "features" }} in {{ .Chart.Name }}:
|
|
12
|
+
{{- range $deprecations }}
|
|
13
|
+
- {{ . }}
|
|
14
|
+
{{- end }}
|
|
15
|
+
{{- end -}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{{/*
|
|
2
2
|
Expand the name of the chart.
|
|
3
3
|
*/}}
|
|
4
|
-
{{- define "web-application.name" -}}
|
|
4
|
+
{{- define "web-application.internal.name" -}}
|
|
5
5
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
|
6
6
|
{{- end }}
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ Create a default fully qualified app name.
|
|
|
10
10
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
11
11
|
If release name contains chart name it will be used as a full name.
|
|
12
12
|
*/}}
|
|
13
|
-
{{- define "web-application.fullname" -}}
|
|
13
|
+
{{- define "web-application.internal.fullname" -}}
|
|
14
14
|
{{- if .Values.fullnameOverride }}
|
|
15
15
|
{{- if gt (len .Values.fullnameOverride) 63 }}
|
|
16
16
|
{{- fail (printf "name exceeds 63 characters: '%s'" .Values.fullnameOverride) }}
|
|
@@ -30,25 +30,25 @@ If release name contains chart name it will be used as a full name.
|
|
|
30
30
|
|
|
31
31
|
{{/*
|
|
32
32
|
*/}}
|
|
33
|
-
{{- define "web-application.bindingName" -}}
|
|
34
|
-
{{- printf "%s-%s" (include "web-application.fullname" .root ) .name }}
|
|
33
|
+
{{- define "web-application.internal.bindingName" -}}
|
|
34
|
+
{{- printf "%s-%s" (include "web-application.internal.fullname" .root ) .name }}
|
|
35
35
|
{{- end }}
|
|
36
36
|
|
|
37
37
|
{{/*
|
|
38
38
|
Create chart name and version as used by the chart label.
|
|
39
39
|
*/}}
|
|
40
|
-
{{- define "web-application.chart" -}}
|
|
40
|
+
{{- define "web-application.internal.chart" -}}
|
|
41
41
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
|
42
42
|
{{- end }}
|
|
43
43
|
|
|
44
44
|
{{/*
|
|
45
45
|
Common labels
|
|
46
46
|
*/}}
|
|
47
|
-
{{- define "web-application.labels" -}}
|
|
47
|
+
{{- define "web-application.internal.labels" -}}
|
|
48
48
|
helm.sh/revision: {{ .Release.Revision | quote }}
|
|
49
|
-
helm.sh/chart: {{ include "web-application.chart" . }}
|
|
49
|
+
helm.sh/chart: {{ include "web-application.internal.chart" . }}
|
|
50
50
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
51
|
-
{{ include "web-application.selectorLabels" . }}
|
|
51
|
+
{{ include "web-application.internal.selectorLabels" . }}
|
|
52
52
|
{{- if .Chart.AppVersion }}
|
|
53
53
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
|
54
54
|
{{- end }}
|
|
@@ -57,8 +57,8 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
|
|
57
57
|
{{/*
|
|
58
58
|
Selector labels
|
|
59
59
|
*/}}
|
|
60
|
-
{{- define "web-application.selectorLabels" -}}
|
|
61
|
-
app.kubernetes.io/name: {{ include "web-application.name" . }}
|
|
60
|
+
{{- define "web-application.internal.selectorLabels" -}}
|
|
61
|
+
app.kubernetes.io/name: {{ include "web-application.internal.name" . }}
|
|
62
62
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
63
63
|
{{- if .Values.global}}
|
|
64
64
|
{{- if .Values.global.component }}
|
|
@@ -73,11 +73,11 @@ app.kubernetes.io/partOf: {{ .Values.global.partOf }}
|
|
|
73
73
|
{{/*
|
|
74
74
|
Define Host for the APIRule
|
|
75
75
|
*/}}
|
|
76
|
-
{{- define "web-application.exposeHost" -}}
|
|
76
|
+
{{- define "web-application.internal.exposeHost" -}}
|
|
77
77
|
{{- if .Values.expose.host }}
|
|
78
78
|
{{- tpl .Values.expose.host . }}
|
|
79
79
|
{{- else }}
|
|
80
|
-
{{- $name := (include "web-application.fullname" .) }}
|
|
80
|
+
{{- $name := (include "web-application.internal.fullname" .) }}
|
|
81
81
|
{{- if hasPrefix $name .Release.Namespace }}
|
|
82
82
|
{{- .Release.Namespace }}
|
|
83
83
|
{{- else }}
|
|
@@ -89,14 +89,14 @@ Define Host for the APIRule
|
|
|
89
89
|
{{/*
|
|
90
90
|
Define the application uri which will be used for the VCAP_APPLICATION env variable
|
|
91
91
|
*/}}
|
|
92
|
-
{{- define "web-application.applicationUri" -}}
|
|
93
|
-
{{- include "web-application.fullname" . }}
|
|
92
|
+
{{- define "web-application.internal.applicationUri" -}}
|
|
93
|
+
{{- include "web-application.internal.fullname" . }}
|
|
94
94
|
{{- end }}
|
|
95
95
|
|
|
96
96
|
{{/*
|
|
97
97
|
Service Binding secret mounts
|
|
98
98
|
*/}}
|
|
99
|
-
{{- define "web-application.serviceMounts" -}}
|
|
99
|
+
{{- define "web-application.internal.serviceMounts" -}}
|
|
100
100
|
{{- $bindings := omit .Values.bindings "defaultProperties" -}}
|
|
101
101
|
{{- range $name, $params := $bindings }}
|
|
102
102
|
- mountPath: /bindings/{{ $name }}/
|
|
@@ -108,10 +108,10 @@ Service Binding secret mounts
|
|
|
108
108
|
{{/*
|
|
109
109
|
Service Binding secret volumes
|
|
110
110
|
*/}}
|
|
111
|
-
{{- define "web-application.serviceVolumes" -}}
|
|
111
|
+
{{- define "web-application.internal.serviceVolumes" -}}
|
|
112
112
|
{{- $bindings := omit .Values.bindings "defaultProperties" -}}
|
|
113
113
|
{{- range $name, $params := $bindings }}
|
|
114
|
-
{{- $secretName := (include "web-application.bindingName" (dict "root" $ "name" $name)) }}
|
|
114
|
+
{{- $secretName := (include "web-application.internal.bindingName" (dict "root" $ "name" $name)) }}
|
|
115
115
|
{{- if $params.fromSecret }}
|
|
116
116
|
{{- $secretName = $params.fromSecret}}
|
|
117
117
|
{{- else if $params.secretName }}
|
|
@@ -126,21 +126,21 @@ Service Binding secret volumes
|
|
|
126
126
|
{{/*
|
|
127
127
|
Name of the imagePullSecret
|
|
128
128
|
*/}}
|
|
129
|
-
{{- define "web-application.imagePullSecretName" -}}
|
|
129
|
+
{{- define "web-application.internal.imagePullSecretName" -}}
|
|
130
130
|
{{ $ips := (dict "local" .Values.imagePullSecret "global" .Values.global.imagePullSecret) }}
|
|
131
131
|
{{- if $ips.local.name }}
|
|
132
132
|
{{- $ips.local.name }}
|
|
133
133
|
{{- else if $ips.global.name }}
|
|
134
134
|
{{- $ips.global.name }}
|
|
135
135
|
{{- else if or $ips.local.dockerconfigjson $ips.global.dockerconfigjson }}
|
|
136
|
-
{{- include "web-application.fullname" . }}
|
|
136
|
+
{{- include "web-application.internal.fullname" . }}
|
|
137
137
|
{{- end }}
|
|
138
138
|
{{- end }}
|
|
139
139
|
|
|
140
140
|
{{/*
|
|
141
141
|
Calculate the final image name
|
|
142
142
|
*/}}
|
|
143
|
-
{{- define "web-application.imageName" -}}
|
|
143
|
+
{{- define "web-application.internal.imageName" -}}
|
|
144
144
|
{{- $tag := .Values.image.tag | default .Values.global.image.tag | default "latest" }}
|
|
145
145
|
{{- $registry := .Values.image.registry | default .Values.global.image.registry }}
|
|
146
146
|
{{- if $registry }}
|
|
@@ -155,7 +155,7 @@ Create the name of a service instance.
|
|
|
155
155
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
156
156
|
If release name contains chart name it will be used as service instance name.
|
|
157
157
|
*/}}
|
|
158
|
-
{{- define "web-application.serviceInstanceName" -}}
|
|
158
|
+
{{- define "web-application.internal.serviceInstanceName" -}}
|
|
159
159
|
{{- $name := "" }}
|
|
160
160
|
{{- if .binding.serviceInstanceFullname }}
|
|
161
161
|
{{- if gt (len .binding.serviceInstanceFullname) 63 }}
|
|
@@ -174,7 +174,7 @@ If release name contains chart name it will be used as service instance name.
|
|
|
174
174
|
{{- tpl $name .root }}
|
|
175
175
|
{{- end }}
|
|
176
176
|
|
|
177
|
-
{{- define "web-application.processEnv" -}}
|
|
177
|
+
{{- define "web-application.internal.processEnv" -}}
|
|
178
178
|
{{- $result := dict }}
|
|
179
179
|
{{- $variables := list }}
|
|
180
180
|
{{- range $k, $v := .Values.env }}
|
|
@@ -219,7 +219,7 @@ If release name contains chart name it will be used as service instance name.
|
|
|
219
219
|
{{- (fromYaml (tpl (toYaml $result) $)) | mustToJson }}
|
|
220
220
|
{{- end }}
|
|
221
221
|
|
|
222
|
-
{{- define "web-application.processEnvFrom" -}}
|
|
222
|
+
{{- define "web-application.internal.processEnvFrom" -}}
|
|
223
223
|
{{- $result := dict }}
|
|
224
224
|
{{- $variables := list }}
|
|
225
225
|
{{- range $envFrom := .Values.envFrom }}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
apiVersion: gateway.kyma-project.io/v1beta1
|
|
3
3
|
kind: APIRule
|
|
4
4
|
metadata:
|
|
5
|
-
name: {{ include "web-application.fullname" . }}
|
|
6
|
-
labels: {{- include "web-application.labels" . | nindent 4 }}
|
|
5
|
+
name: {{ include "web-application.internal.fullname" . }}
|
|
6
|
+
labels: {{- include "web-application.internal.labels" . | nindent 4 }}
|
|
7
7
|
spec:
|
|
8
8
|
gateway: {{ .Values.expose.gateway }}
|
|
9
|
-
host: {{ include "web-application.exposeHost" . }}
|
|
9
|
+
host: {{ include "web-application.internal.exposeHost" . }}
|
|
10
10
|
service:
|
|
11
|
-
name: {{ include "web-application.fullname" . }}
|
|
11
|
+
name: {{ include "web-application.internal.fullname" . }}
|
|
12
12
|
port: {{ .Values.port }}
|
|
13
13
|
rules:
|
|
14
14
|
{{- toYaml .Values.expose.rules | nindent 6 }}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
apiVersion: apps/v1
|
|
2
2
|
kind: Deployment
|
|
3
3
|
metadata:
|
|
4
|
-
labels: {{- include "web-application.labels" . | nindent 4 }}
|
|
5
|
-
name: {{ include "web-application.fullname" . }}
|
|
4
|
+
labels: {{- include "web-application.internal.labels" . | nindent 4 }}
|
|
5
|
+
name: {{ include "web-application.internal.fullname" . }}
|
|
6
6
|
spec:
|
|
7
7
|
replicas: {{ .Values.replicaCount }}
|
|
8
8
|
selector:
|
|
9
|
-
matchLabels: {{- include "web-application.selectorLabels" . | nindent 6 }}
|
|
9
|
+
matchLabels: {{- include "web-application.internal.selectorLabels" . | nindent 6 }}
|
|
10
10
|
template:
|
|
11
11
|
metadata:
|
|
12
|
-
labels: {{- include "web-application.selectorLabels" . | nindent 8 }}
|
|
12
|
+
labels: {{- include "web-application.internal.selectorLabels" . | nindent 8 }}
|
|
13
13
|
annotations:
|
|
14
|
-
container.apparmor.security.beta.kubernetes.io/{{ include "web-application.name" . }}: runtime/default
|
|
14
|
+
container.apparmor.security.beta.kubernetes.io/{{ include "web-application.internal.name" . }}: runtime/default
|
|
15
15
|
spec:
|
|
16
|
-
{{- if (include "web-application.imagePullSecretName" .) }}
|
|
16
|
+
{{- if (include "web-application.internal.imagePullSecretName" .) }}
|
|
17
17
|
imagePullSecrets:
|
|
18
|
-
- name: {{ include "web-application.imagePullSecretName" . }}
|
|
18
|
+
- name: {{ include "web-application.internal.imagePullSecretName" . }}
|
|
19
19
|
{{- end }}
|
|
20
20
|
automountServiceAccountToken: false
|
|
21
|
-
serviceAccountName: {{ tpl (.Values.serviceAccountName | default (include "web-application.fullname" .)) $ }}
|
|
21
|
+
serviceAccountName: {{ tpl (.Values.serviceAccountName | default (include "web-application.internal.fullname" .)) $ }}
|
|
22
22
|
containers:
|
|
23
|
-
- image: {{ include "web-application.imageName" . }}
|
|
24
|
-
name: {{ include "web-application.name" . }}
|
|
23
|
+
- image: {{ include "web-application.internal.imageName" . }}
|
|
24
|
+
name: {{ include "web-application.internal.name" . }}
|
|
25
25
|
ports:
|
|
26
26
|
- name: http
|
|
27
27
|
containerPort: {{ .Values.port }}
|
|
28
28
|
protocol: TCP
|
|
29
29
|
envFrom:
|
|
30
|
-
{{- $envFromVars := (include "web-application.processEnvFrom" . | fromJson) }}
|
|
30
|
+
{{- $envFromVars := (include "web-application.internal.processEnvFrom" . | fromJson) }}
|
|
31
31
|
{{- if not (eq (len $envFromVars.vars) 0) }}
|
|
32
32
|
{{- $envFromVars.vars | toYaml | nindent 8}}
|
|
33
33
|
{{- end }}
|
|
@@ -38,17 +38,17 @@ spec:
|
|
|
38
38
|
value: {{ .Values.port | quote }}
|
|
39
39
|
- name: TMPDIR
|
|
40
40
|
value: /tmp
|
|
41
|
-
{{- $envVars := (include "web-application.processEnv" $ | fromJson) }}
|
|
41
|
+
{{- $envVars := (include "web-application.internal.processEnv" $ | fromJson) }}
|
|
42
42
|
{{- if not (eq (len $envVars.vars) 0) }}
|
|
43
43
|
{{- $envVars.vars | toYaml | nindent 8}}
|
|
44
44
|
{{- end }}
|
|
45
45
|
{{- if not $envVars.appName}}
|
|
46
46
|
- name: APPLICATION_NAME
|
|
47
|
-
value: {{ include "web-application.fullname" . }}
|
|
47
|
+
value: {{ include "web-application.internal.fullname" . }}
|
|
48
48
|
{{- end }}
|
|
49
49
|
{{- if not $envVars.appURI}}
|
|
50
50
|
- name: APPLICATION_URI
|
|
51
|
-
value: {{ include "web-application.applicationUri" . }}
|
|
51
|
+
value: {{ include "web-application.internal.applicationUri" . }}
|
|
52
52
|
{{- end }}
|
|
53
53
|
livenessProbe:
|
|
54
54
|
{{- if .Values.health.liveness.path }}
|
|
@@ -88,7 +88,7 @@ spec:
|
|
|
88
88
|
- name: {{ $volume.name | quote }}
|
|
89
89
|
{{- toYaml $volume.volumeMount | nindent 10 }}
|
|
90
90
|
{{- end }}
|
|
91
|
-
{{- include "web-application.serviceMounts" . | nindent 8 }}
|
|
91
|
+
{{- include "web-application.internal.serviceMounts" . | nindent 8 }}
|
|
92
92
|
resources:
|
|
93
93
|
{{- toYaml .Values.resources | nindent 10 }}
|
|
94
94
|
securityContext:
|
|
@@ -107,7 +107,7 @@ spec:
|
|
|
107
107
|
topologySpreadConstraints:
|
|
108
108
|
{{- range $constraint := .Values.availability.topologySpreadConstraints }}
|
|
109
109
|
- labelSelector:
|
|
110
|
-
matchLabels: {{- include "web-application.selectorLabels" $ | nindent 12 }}
|
|
110
|
+
matchLabels: {{- include "web-application.internal.selectorLabels" $ | nindent 12 }}
|
|
111
111
|
maxSkew: {{ $constraint.maxSkew }}
|
|
112
112
|
topologyKey: {{ $constraint.topologyKey }}
|
|
113
113
|
whenUnsatisfiable: {{ $constraint.whenUnsatisfiable }}
|
|
@@ -117,7 +117,7 @@ spec:
|
|
|
117
117
|
name: tmp
|
|
118
118
|
- emptyDir: {}
|
|
119
119
|
name: bindings-root
|
|
120
|
-
{{- include "web-application.serviceVolumes" . | nindent 6 }}
|
|
120
|
+
{{- include "web-application.internal.serviceVolumes" . | nindent 6 }}
|
|
121
121
|
{{- range $volume := .Values.additionalVolumes }}
|
|
122
122
|
-
|
|
123
123
|
{{- tpl (omit $volume "volumeMount" | toYaml) $ | nindent 8 }}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
kind: NetworkPolicy
|
|
3
3
|
apiVersion: networking.k8s.io/v1
|
|
4
4
|
metadata:
|
|
5
|
-
name: {{ include "web-application.fullname" . }}
|
|
6
|
-
labels: {{- include "web-application.labels" . | nindent 4 }}
|
|
5
|
+
name: {{ include "web-application.internal.fullname" . }}
|
|
6
|
+
labels: {{- include "web-application.internal.labels" . | nindent 4 }}
|
|
7
7
|
spec:
|
|
8
8
|
ingress:
|
|
9
9
|
{{- if .Values.expose.enabled }}
|
|
@@ -14,10 +14,24 @@ spec:
|
|
|
14
14
|
namespaceSelector:
|
|
15
15
|
matchLabels:
|
|
16
16
|
kubernetes.io/metadata.name: istio-system
|
|
17
|
+
ports:
|
|
18
|
+
- protocol: TCP
|
|
19
|
+
port: {{ .Values.port }}
|
|
20
|
+
{{- range $port := .Values.networkSecurity.additionalPorts }}
|
|
21
|
+
- protocol: TCP
|
|
22
|
+
port: {{ $port }}
|
|
23
|
+
{{- end }}
|
|
17
24
|
{{- end }}
|
|
18
25
|
{{- if .Values.networkSecurity.allowNamespaceInternal }}
|
|
19
26
|
- from:
|
|
20
27
|
- podSelector: {}
|
|
28
|
+
ports:
|
|
29
|
+
- protocol: TCP
|
|
30
|
+
port: {{ .Values.port }}
|
|
31
|
+
{{- range $port := .Values.networkSecurity.additionalPorts }}
|
|
32
|
+
- protocol: TCP
|
|
33
|
+
port: {{ $port }}
|
|
34
|
+
{{- end }}
|
|
21
35
|
{{- end }}
|
|
22
36
|
{{- range $netRule := .Values.networkSecurity.ingress }}
|
|
23
37
|
- from:
|
|
@@ -33,9 +47,16 @@ spec:
|
|
|
33
47
|
{{- else }}
|
|
34
48
|
podSelector: {}
|
|
35
49
|
{{- end }}
|
|
50
|
+
ports:
|
|
51
|
+
- protocol: TCP
|
|
52
|
+
port: {{ $.Values.port }}
|
|
53
|
+
{{- range $port := $.Values.networkSecurity.additionalPorts }}
|
|
54
|
+
- protocol: TCP
|
|
55
|
+
port: {{ $port }}
|
|
56
|
+
{{- end }}
|
|
36
57
|
{{- end }}
|
|
37
58
|
policyTypes:
|
|
38
59
|
- Ingress
|
|
39
60
|
podSelector:
|
|
40
|
-
matchLabels: {{- include "web-application.selectorLabels" . | nindent 6 }}
|
|
61
|
+
matchLabels: {{- include "web-application.internal.selectorLabels" . | nindent 6 }}
|
|
41
62
|
{{- end }}
|
package/lib/init/template/helm/subcharts/web-application/templates/pod-disruption-budget.yaml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
apiVersion: policy/v1
|
|
2
2
|
kind: PodDisruptionBudget
|
|
3
3
|
metadata:
|
|
4
|
-
name: {{ include "web-application.fullname" . }}
|
|
5
|
-
labels: {{- include "web-application.labels" . | nindent 4 }}
|
|
4
|
+
name: {{ include "web-application.internal.fullname" . }}
|
|
5
|
+
labels: {{- include "web-application.internal.labels" . | nindent 4 }}
|
|
6
6
|
spec:
|
|
7
7
|
maxUnavailable: {{ .Values.availability.podDisruptionBudget.maxUnavailable }}
|
|
8
8
|
selector:
|
|
9
|
-
matchLabels: {{- include "web-application.selectorLabels" . | nindent 6 }}
|
|
9
|
+
matchLabels: {{- include "web-application.internal.selectorLabels" . | nindent 6 }}
|
|
@@ -3,8 +3,8 @@ apiVersion: v1
|
|
|
3
3
|
kind: Secret
|
|
4
4
|
type: kubernetes.io/dockerconfigjson
|
|
5
5
|
metadata:
|
|
6
|
-
name: {{ include "web-application.imagePullSecretName" . }}
|
|
7
|
-
labels: {{- include "web-application.labels" . | nindent 4 }}
|
|
6
|
+
name: {{ include "web-application.internal.imagePullSecretName" . }}
|
|
7
|
+
labels: {{- include "web-application.internal.labels" . | nindent 4 }}
|
|
8
8
|
data:
|
|
9
9
|
.dockerconfigjson: {{ default .Values.global.imagePullSecret.dockerconfigjson .Values.imagePullSecret.dockerconfigjson }}
|
|
10
10
|
{{- end }}
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
apiVersion: services.cloud.sap.com/v1
|
|
8
8
|
kind: ServiceBinding
|
|
9
9
|
metadata:
|
|
10
|
-
name: {{ include "web-application.bindingName" (dict "root" $ "name" $name) }}
|
|
11
|
-
labels: {{- include "web-application.labels" $ | nindent 4 }}
|
|
10
|
+
name: {{ include "web-application.internal.bindingName" (dict "root" $ "name" $name) }}
|
|
11
|
+
labels: {{- include "web-application.internal.labels" $ | nindent 4 }}
|
|
12
12
|
spec:
|
|
13
|
-
serviceInstanceName: {{include "web-application.serviceInstanceName" (dict "binding" $mergedParams "root" $) }}
|
|
13
|
+
serviceInstanceName: {{include "web-application.internal.serviceInstanceName" (dict "binding" $mergedParams "root" $) }}
|
|
14
14
|
secretKey: credentials
|
|
15
15
|
{{- if $mergedParams.externalName }}
|
|
16
16
|
externalName: {{ $mergedParams.externalName }}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
apiVersion: v1
|
|
2
2
|
kind: Service
|
|
3
3
|
metadata:
|
|
4
|
-
name: {{ include "web-application.fullname" . }}
|
|
5
|
-
labels: {{- include "web-application.labels" . | nindent 4 }}
|
|
4
|
+
name: {{ include "web-application.internal.fullname" . }}
|
|
5
|
+
labels: {{- include "web-application.internal.labels" . | nindent 4 }}
|
|
6
6
|
spec:
|
|
7
7
|
ports:
|
|
8
8
|
- port: {{ .Values.port }}
|
|
9
9
|
targetPort: {{ .Values.port }}
|
|
10
10
|
protocol: TCP
|
|
11
|
-
selector: {{- include "web-application.selectorLabels" . | nindent 4 }}
|
|
11
|
+
selector: {{- include "web-application.internal.selectorLabels" . | nindent 4 }}
|