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

API Review: Change status.ApplicationObjects type from []string to a more specific type

XMLWordPrintable

      This story refers to the reference to applicationObjects in the `status` of the CR(D).

      The list of application objects identified either by the ApplicationSelector.ResourceRef or ApplicationSelector.MatchLabels. Currently this list is a []string, which demands the consumer to parse and interpret the value stored in there.

      The same information could be encoded in a struct containing some of the fields from the ApplicationSelector: Group, Version, Kind and ResourceRef, removing the burden of making consumers to use a library to decode the information that can be decoded by the type system and supporting libraries.

      https://github.com/redhat-developer/service-binding-operator/blob/master/pkg/apis/apps/v1alpha1/servicebindingrequest_types.go#L58

       

              Unassigned Unassigned
              isuttonl Igor Sutton (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: