Skip to content

Commit 2c3369d

Browse files
ivanmatmatioktalz
authored andcommitted
BUG/MINOR: Fix ingress accepted with ingressClassName set to unexisting ingressclass.
1 parent 9730874 commit 2c3369d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controller/ingress/ingress.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (i Ingress) supported(k8s store.K8s) (supported bool) {
6868
}()
6969

7070
if i.controllerClass == "" {
71-
if igClassAnn == "" && igClassSpec == "" {
71+
if igClassAnn == "" && i.resource.Class == "" {
7272
supported = true
7373
return
7474
}
@@ -77,7 +77,7 @@ func (i Ingress) supported(k8s store.K8s) (supported bool) {
7777
return
7878
}
7979
} else {
80-
if igClassAnn == "" && igClassSpec == "" && i.allowEmptyClass {
80+
if igClassAnn == "" && i.resource.Class == "" && i.allowEmptyClass {
8181
supported = true
8282
return
8383
}

0 commit comments

Comments
 (0)