StatCan/ingress-istio-controller

Ensure that only the ingressClass label or the ingressClassName is used to determine Ingress handling

Closed this issue · 0 comments

if val, ok := ingress.Annotations[IngressClassAnnotation]; ok && c.ingressClass != "" && val == c.ingressClass {

The ingressClass annotation takes precedence when deciding how to handle an Ingress so as to ensure backwards compatibility.

The check of the annotation should probably prevent the ingressClassName from being used at all if it is set.