Skip to content

Commit

Permalink
BUG/MINOR: Fix ingress accepted with ingressClassName set to unexisti…
Browse files Browse the repository at this point in the history
…ng ingressclass.
  • Loading branch information
ivanmatmati authored and Mo3m3n committed Nov 10, 2021
1 parent 5b2f715 commit 83c2e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller/ingress/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (i Ingress) supported(k8s store.K8s) (supported bool) {
}()

if i.controllerClass == "" {
if igClassAnn == "" && igClassSpec == "" {
if igClassAnn == "" && i.resource.Class == "" {
supported = true
return
}
Expand All @@ -77,7 +77,7 @@ func (i Ingress) supported(k8s store.K8s) (supported bool) {
return
}
} else {
if igClassAnn == "" && igClassSpec == "" && i.allowEmptyClass {
if igClassAnn == "" && i.resource.Class == "" && i.allowEmptyClass {
supported = true
return
}
Expand Down

0 comments on commit 83c2e09

Please sign in to comment.