Uploaded image for project: 'Service Binding'
  1. Service Binding
  2. APPSVC-625

Only the last SBR is recorded in backingservice annotation

XMLWordPrintable

    • Sprint 188

      GitHub issue: https://github.com/redhat-developer/service-binding-operator/issues/458

      Currently, we have a requirement to support the multiple application binding testcase:

      • binding application A -> backingService CR Y with SBR CR named as A-Y
      • binding application B -> backingService CR Y as well with SBR CR named as B-Y

      After the binding operation, I would like to do some further queries to understand how many application is bound to the service.
      But when checking the Y's annotation, I only see:

      service-binding-operator.apps.openshift.io/binding-name:  B-Y
      

      Also, once I deleted SBR B-Y, there is no annotation at all on the backingService CR Y any more !

      I know there may be some discussion to define multiple applications inside a single SBR, but if the end-user intends to define multiple SBRs over the same backingService (as my example above), I think the annotation should reflect a correct information.

      So, I hope to need to change this field from json entry to json array as:

      service-binding-operator.apps.openshift.io/binding-name:  A-Y,B-Y
      

      or

           service-binding-operator.apps.openshift.io/binding-name: |
            [
             {"binding-name":"sbr1"},
             {"binding-name":"sbr2"},
            ]
      

            isuttonl Igor Sutton (Inactive)
            pedjak@gmail.com Predrag Knezevic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: