Bug 1840383

Summary: ServiceBindingRequest backingServiceSelectors breaks topology
Product: OpenShift Container Platform Reporter: Jeff Phillips <jephilli>
Component: Dev ConsoleAssignee: Jeff Phillips <jephilli>
Status: CLOSED ERRATA QA Contact: Gajanan More <gamore>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.5CC: aos-bugs, nmukherj
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1846305 (view as bug list) Environment:
Version: 4.5.0-0.ci-2020-05-26-081827 Cluster ID: 2b906c42-8514-4828-a46d-f7b0e14136b8 Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
Last Closed: 2020-07-13 17:41:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1846305    

Description Jeff Phillips 2020-05-26 20:27:31 UTC
Description of problem:

A breaking change was introduced in the Service Binding Request CRD in order to support multiple backing selectors.

`backingServiceSelector` and `backingServiceSelectors` are both optional. In the past `backingServiceSelector` was required.

Version-Release number of selected component (if applicable):


How reproducible:

Always

Steps to Reproduce:
1. Install the Service Binding Operator
2. Create a deployment named 'my-app'
3. Create a service binding request without any backing service selectors:
  apiVersion: apps.openshift.io/v1alpha1
  kind: ServiceBindingRequest
  metadata:
    name: binding-1
  spec:
    applicationSelector:
      group: apps
      resource: deployments
      resourceRef: my-app
      version: v1
    detectBindingResources: true
4. Visit topology


Actual results:

White screens with error `Uncaught TypeError: Cannot read property 'kind' of undefined`


Expected results:

Topology to load correctly.

Additional info:

Comment 4 Gajanan More 2020-06-08 09:04:07 UTC
I have validated the bugzilla on:
Build: 4.5.0-0.nightly-2020-06-05-214616
Browser: Google Chrome Version 81.0.4044.129
Marking this as verified.

Comment 5 errata-xmlrpc 2020-07-13 17:41:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:2409