Skip to content

Commit

Permalink
BUG/MINOR: fix segfault because ingressclass API is absent (pre v1.18…
Browse files Browse the repository at this point in the history
… k8s)
  • Loading branch information
ivanmatmati committed Jun 20, 2022
1 parent 9f06093 commit 0e4f460
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/k8s/informers.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,9 @@ func (k k8s) getIngressInformers(eventChan chan SyncDataEvent, factory informers
}
if ii != nil {
k.addIngressHandlers(eventChan, ii)
k.addIngressClassHandlers(eventChan, ici)
if ici != nil {
k.addIngressClassHandlers(eventChan, ici)
}
return
}
}
Expand Down

0 comments on commit 0e4f460

Please sign in to comment.