Commit 650d0ab2 authored by Geoff Simmons's avatar Geoff Simmons

Fix the log message for ignoring Ingresses with a "foreign" IngressClass.

parent 30aabf11
......@@ -1333,11 +1333,17 @@ func (worker *NamespaceWorker) chkAddOrUpdateIng(
"implemented by viking: %v", ing.Namespace,
ing.Name, err)
} else if !isViking {
var name string
syncCounters.WithLabelValues(worker.namespace, "Ingress",
"Ignore").Inc()
if ing.Spec.IngressClassName != nil {
name = *ing.Spec.IngressClassName
} else {
name = "nil"
}
return update.MakeNoop("Ignoring Ingress %s/%s, "+
"Annotation '%v' absent or is not '%s'", ing.Namespace,
ing.Name, ingressClassKey, worker.ingClass)
"IngressClass '%s' does not specify '%s'",
ing.Namespace, ing.Name, name, worker.ingClass)
}
return worker.addOrUpdateIng(ing)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment