Skip to content

Commit

Permalink
Fix serviceinstance panic (#7758)
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanh authored and adamwalach committed Mar 25, 2020
1 parent fd60596 commit df10476
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ func (m *serviceInstanceManager) populateServiceInstances(namespaces []string) e
}

for _, svci := range svcis.Items {
// Eventing ServiceInstance will only have ServiceClassRef hence rest are ignored
if svci.Spec.ServiceClassRef == nil {
continue
}
scName := svci.Spec.ServiceClassRef.Name

_, isEventsClass := eventsSvcClasses[scName]
Expand Down

0 comments on commit df10476

Please sign in to comment.