on 02-22-2019 9:34 PM
Hello Everyone,
I've noticed that when deploying an MTAR file, the mappings of any non-default routings defined in the CF environment associated with an application are deleted. The route definition itself remains but the mapping is purged. Is this the expected behavior and is there any way to prevent this loss of mappings?
The context I'm working with is for a multi-tenant approuter where routings are created/mapped as part of the tenant onboarding process. This dynamic nature of the mappings means that I cannot simply define the routes within an mta/manifest.yml file.
I suppose it would be possible to create some initialization logic to read onboarded tenants from my persistent store and re-map the routes on app restart but I'm hoping I can avoid that by just having the mapped routes remain after app re-deploys.
Any guidance on this question is appreciated.
Thanks,
Brian
Hi Brian,
By default, the MTA deployer service deletes mappings that are not defined in the descriptor file. You can use the "keep-existing-routes: true" in the yml file to change this behavior. You can place it either at the top of the document (for all modules), or you can add it to each module. Find the definition in MTA Module Types, Resource Types, and Parameters for Applications in the Cloud Foundry Environment
Best Regards,
Lucas
---------------------
P.S.: Now also a KBA is available thanks to Lucas
https://launchpad.support.sap.com/#/notes/2762799
Ervin(moderator)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.