enqueue default backend for NEG processing
@@ -567,10 +567,16 @@ func (c *Controller) enqueueService(obj interface{}) {
}
func (c *Controller) enqueueIngressServices(ing *v1beta1.Ingress) {
+ // enqueue services referenced by ingress
keys := gatherIngressServiceKeys(ing)
for key := range keys {
c.enqueueService(cache.ExplicitKey(key))
}
+
+ // enqueue default backend service
+ if flags.F.EnableL7Ilb && ing.Spec.Backend == nil {
+ c.enqueueService(cache.ExplicitKey(c.defaultBackendService.ID.Service.String()))
+ }
}
// enqueueDestinationRule will enqueue the service used by obj.
