@@ -703,7 +703,7 @@ index 0000000..f5ab33c
703703+ }
704704+ }
705705+
706- + func (c *Controller) notifySeviceEntryChange (prev, curr config.Config, event model.Event) {
706+ + func (c *Controller) notifyServiceEntryChange (prev, curr config.Config, event model.Event) {
707707+ log.Debugf("notify ServiceEntry change event %s, name: %s, namespace: %s",
708708+ event, curr.Name, curr.Namespace)
709709+
@@ -719,16 +719,16 @@ index 0000000..f5ab33c
719719+ for name, entry := range c.prevServiceEntries {
720720+ if curr, ok := c.serviceEntries[name]; !ok {
721721+ // Deleted ServiceEntry should be passed as the 'curr' ServiceEntry
722- + c.notifySeviceEntryChange (config.Config{}, *entry, model.EventDelete)
722+ + c.notifyServiceEntryChange (config.Config{}, *entry, model.EventDelete)
723723+ } else {
724724+ // Let the serviceEntryHandler to diff them
725- + c.notifySeviceEntryChange (*entry, *curr, model.EventUpdate)
725+ + c.notifyServiceEntryChange (*entry, *curr, model.EventUpdate)
726726+ }
727727+ }
728728+
729729+ for name, entry := range c.serviceEntries {
730730+ if _, ok := c.prevServiceEntries[name]; !ok {
731- + c.notifySeviceEntryChange (config.Config{}, *entry, model.EventAdd)
731+ + c.notifyServiceEntryChange (config.Config{}, *entry, model.EventAdd)
732732+ }
733733+ }
734734+ }
0 commit comments