Table of Contents
This example shows how to preserve manually created service bindings, during an MTA deployment, that are created outside of the MTA. A real use case for that is a multi-tenant scenario where bindings are created during tenant onboarding of a multitenant application, and those bindings are not maintained by MTA deployment.
Modelled via a module level parameter keep-existing
and parameter option service-bindings
:
modules:
- name:...
parameters:
keep-existing:
service-bindings: true
In that part the MTA will be initially deployed when two applications are deployed and one service instance. There is not binding between them.
directly from an mtad.yaml
$ cf deploy ./ -f ;
or start from an mta.yaml:
$ mbt build -p cf -t . ;
$ cf deploy a.cf.app_0.0.0.mtar -f ;
$ cf bind-service cf-app-keeping-bindings dummy-service
$ cf bind-service cf-app-resetting-bindings dummy-service
$ cf deploy -f ;
# or
$ cf deploy a.cf.app_0.0.0.mtar -f ;