Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 37fb78d

Browse files
committed
mta.yaml: optimize destinations
1 parent 6e7dc8e commit 37fb78d

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

mta.yaml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@ modules:
2424
readiness-health-check-http-endpoint: /health
2525
disk-quota: 256M
2626
memory: 256M
27-
destination-name: bookshop-dest
2827
build-parameters:
2928
builder: npm
3029
provides:
3130
- name: bookshop-api
3231
properties:
3332
srv-url: ${default-url}
34-
destination: ${destination-name}
3533
requires:
3634
- name: samples-messaging
3735
- name: samples-db
@@ -46,14 +44,12 @@ modules:
4644
readiness-health-check-http-endpoint: /health
4745
disk-quota: 256M
4846
memory: 256M
49-
destination-name: orders-dest
5047
build-parameters:
5148
builder: npm
5249
provides:
5350
- name: orders-api
5451
properties:
5552
srv-url: ${default-url}
56-
destination: ${destination-name}
5753
requires:
5854
- name: samples-messaging
5955
- name: samples-db
@@ -68,14 +64,12 @@ modules:
6864
readiness-health-check-http-endpoint: /health
6965
disk-quota: 256M
7066
memory: 256M
71-
destination-name: reviews-dest
7267
build-parameters:
7368
builder: npm
7469
provides:
7570
- name: reviews-api
7671
properties:
7772
srv-url: ${default-url}
78-
destination: ${destination-name}
7973
requires:
8074
- name: samples-messaging
8175
- name: samples-db
@@ -166,17 +160,12 @@ modules:
166160
instance:
167161
existing_destinations_policy: update
168162
destinations:
169-
- Name: ~{bookshop-api/destination}
170-
URL: ~{bookshop-api/srv-url}
171-
Authentication: OAuth2ClientCredentials
172-
TokenServiceInstanceName: samples-auth
173-
TokenServiceKeyName: xsuaa_service-key
174-
- Name: ~{orders-api/destination}
163+
- Name: orders-dest
175164
URL: ~{orders-api/srv-url}
176165
Authentication: OAuth2ClientCredentials
177166
TokenServiceInstanceName: samples-auth
178167
TokenServiceKeyName: xsuaa_service-key
179-
- Name: ~{reviews-api/destination}
168+
- Name: reviews-dest
180169
URL: ~{reviews-api/srv-url}
181170
Authentication: OAuth2ClientCredentials
182171
TokenServiceInstanceName: samples-auth

0 commit comments

Comments
 (0)