Skip to content

Commit

Permalink
Merge pull request #903 from spencerhance/cherry-pick-900-into-1-7
Browse files Browse the repository at this point in the history
Cherry pick #900 into release-1.7
  • Loading branch information
k8s-ci-robot authored Oct 18, 2019
2 parents fb3593e + 2274151 commit 58db9e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/neg/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 58db9e4

Please sign in to comment.