You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: active-optional-resources/README.adoc
+51-34
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,21 @@
2
2
3
3
# Active and Optional Resources
4
4
5
-
This example shows how to mark service resources as optional/mandatory or active/inactive in order to influence the deployment behaviour
5
+
This example shows how to mark service resources as optional/mandatory or active/inactive in order to influence the deployment behaviour.
6
6
7
-
Orchestration of the following CF features is covered:
7
+
Orchestration of the following Cloud Foundry features is covered:
8
8
9
9
- creation of service instances: https://docs.cloudfoundry.org/devguide/services/managing-services.html
10
10
- creation of app bindings to service instances https://docs.cloudfoundry.org/devguide/services/application-binding.html#bind
11
11
12
-
##Modelling
12
+
##Modeling
13
13
14
14
### Service instances
15
-
Service instances are modelled as MTA resources of type `org.cloudfoundry.managed-service`.
15
+
Service instances are modeled as MTA resources of type `org.cloudfoundry.managed-service`.
16
16
17
17
### Optional service instances
18
-
In case a service instance is not mandatory for a deployment but should be used if availalble, it can be marked as optional in the mta(d).yaml descriptor
18
+
If a service instance is not mandatory for a deployment but you want it to be used if availalble, it can be marked as `optional` in the `mta(d).yaml` descriptor:
19
+
19
20
....
20
21
...
21
22
- name: my-cf-service-instance-resource
@@ -25,11 +26,12 @@ In case a service instance is not mandatory for a deployment but should be used
25
26
...
26
27
....
27
28
28
-
NOTE: the value of the `optional` resource attribute can be changed for each deployment by link:https://github.com/SAP-samples/cf-mta-examples/tree/main/extension-descriptor-different-environments[using an extension descriptor]
29
+
NOTE: The value of the `optional` resource attribute can be changed for each deployment by link:https://github.com/SAP-samples/cf-mta-examples/tree/main/extension-descriptor-different-environments[using an extension descriptor].
29
30
30
31
31
32
### Including/excluding services from deployment
32
-
To give fine control over what get's deployed or not, resources representing service instances can be marked as active or not. This will cause the MTA deployer to process/not-process them at deploy time.
33
+
Service instance resources can be marked as active or inactive to provide finer control over what is deployed. Depending on their status, the MTA deployer will either process or ignore these resources when deploying.
34
+
33
35
....
34
36
...
35
37
- name: my-cf-service-instance-resource
@@ -39,63 +41,72 @@ To give fine control over what get's deployed or not, resources representing ser
39
41
...
40
42
....
41
43
42
-
NOTE: the value of the `active` resource attribute can be changed for each deployment by link:https://github.com/SAP-samples/cf-mta-examples/tree/main/extension-descriptor-different-environments[using an extension descriptor]
44
+
NOTE: The value of the `active` resource attribute can be changed for each deployment by link:https://github.com/SAP-samples/cf-mta-examples/tree/main/extension-descriptor-different-environments[using an extension descriptor].
43
45
44
-
NOTE: the`active` attribute can also be specified for resources of type `org.cloudfoundry.existing-service`. In that case it determines if app bindings to the service would be created or not. I.e. if an app module has a reference to an existing-service resource via `requires: ...` and the resource has `active: false`, a service binding between them will not be created during deployment.
46
+
NOTE: The`active` attribute can also be specified for resources of type `org.cloudfoundry.existing-service`. In that case it determines if app bindings to the service would be created or not. If an app module has a reference to an existing-service resource via `requires: ...` and the resource has `active: false`, a service binding between them will not be created during deployment.
45
47
46
48
## Related examples
47
-
- service instance and binding creation(configurations) management with MTAs
48
-
- update of service instances and bindings [updating parameters, changing plans and labels; recreation]
49
+
- service instance and binding creation(configurations) management with MTAs
50
+
- update of service instances and bindings [updating parameters, changing plans and labels; recreation]
49
51
50
52
## Requirements
51
-
- access to a CF space with quota for creation of service instances
53
+
- access to a Cloud Foundry space with quota for creation of service instances
Deploying multi-target app archive /Users/********/dev/repos/ds/cf-mta-examples/active-optional-resources/my-mta.mtar in org deploy-service / space ******** as ********...
119
130
120
131
Uploading 1 files...
@@ -133,15 +144,15 @@ Processing service "my-cf-service-instance-resource"...
0 commit comments