Merge b8d3d4361a
into 46d87d3462
This commit is contained in:
commit
39329df71e
1 changed files with 6 additions and 4 deletions
|
@ -470,10 +470,9 @@ func New(
|
||||||
|
|
||||||
var errOld, errCur error
|
var errOld, errCur error
|
||||||
var classCur string
|
var classCur string
|
||||||
if !icConfig.IgnoreIngressClass {
|
_, errOld = store.GetIngressClass(oldIng, icConfig)
|
||||||
_, errOld = store.GetIngressClass(oldIng, icConfig)
|
classCur, errCur = store.GetIngressClass(curIng, icConfig)
|
||||||
classCur, errCur = store.GetIngressClass(curIng, icConfig)
|
|
||||||
}
|
|
||||||
if errOld != nil && errCur == nil {
|
if errOld != nil && errCur == nil {
|
||||||
if hasCatchAllIngressRule(curIng.Spec) && disableCatchAll {
|
if hasCatchAllIngressRule(curIng.Spec) && disableCatchAll {
|
||||||
klog.InfoS("ignoring update for catch-all ingress because of --disable-catch-all", "ingress", klog.KObj(curIng))
|
klog.InfoS("ignoring update for catch-all ingress because of --disable-catch-all", "ingress", klog.KObj(curIng))
|
||||||
|
@ -494,6 +493,9 @@ func New(
|
||||||
}
|
}
|
||||||
|
|
||||||
recorder.Eventf(curIng, corev1.EventTypeNormal, "Sync", "Scheduled for sync")
|
recorder.Eventf(curIng, corev1.EventTypeNormal, "Sync", "Scheduled for sync")
|
||||||
|
} else if errOld != nil && errCur != nil {
|
||||||
|
klog.InfoS("Ingress doesn't match the ingress class. Skipping update", "ingress", klog.KObj(curIng))
|
||||||
|
return
|
||||||
} else {
|
} else {
|
||||||
klog.V(3).InfoS("No changes on ingress. Skipping update", "ingress", klog.KObj(curIng))
|
klog.V(3).InfoS("No changes on ingress. Skipping update", "ingress", klog.KObj(curIng))
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue