-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
Use Case:
ServiceBinding resource allows declaring multiple services.
Reasons:
Although this looks at first as a handy shortcut, using this might cause a few issues:
- A binding item from one service can be shadowed by another from another service (when binding keys are the same). Likelihood is very high, given that expected key names are username/password/url/… The issue can be worked around by introducing binding key prefixes or some custom naming conventions so that the keys become unique, but then it might be that such bindings cannot be consumed by application, i.e. it needs to be modified to support that
- Unbind operation becomes all or nothing, i.e. it is not possible to unbind single service
- What about updating/editing impact? I want to edit one service’s binding resources, how does it impact the applications that are consuming it?
Requirements:
- Update samples:
- [SB] Binding a workload with a non-CR-based PostgrersDB: The service resources involved are (1)Route/Service to Postgres (2)Secret containing DB credentials.
- [SB] Binding a workload with keycloak. The service resources involved are (1) Keycloak CR (2) KeycloakUser CR
Are dependencies identified?
No dependency.
Are blockers noted?
No blockers to deliver this issue.
Is design implementable?
- Update Services from slice to a single element `Service` -> https://github.com/redhat-developer/service-binding-operator/blob/master/api/v1alpha1/servicebinding_types.go#L84
- `Id` was introduced to distinguish between different services which is not needed anymore. Remove `id` from Services -> https://github.com/redhat-developer/service-binding-operator/blob/master/api/v1alpha1/servicebinding_types.go#L164
What is the acceptance criteria?
This acceptance test should be removed:
https://github.com/redhat-developer/service-binding-operator/blob/master/test/acceptance/features/bindAppToMultipleServices.feature
Is the story estimated?
5
- is cloned by
-
APPSVC-838 Drop Support binding N services to M application using single ServiceBinding resource
-
- Closed
-
- is incorporated by
-
APPSVC-838 Drop Support binding N services to M application using single ServiceBinding resource
-
- Closed
-