Skip to content

Commit

Permalink
BUG/MINOR: revert changes in EventPublishService done in commit f39d5c8
Browse files Browse the repository at this point in the history
  • Loading branch information
hdurand0710 committed Nov 2, 2023
1 parent f39d5c8 commit 798e3f6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/store/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,11 @@ func (k *K8s) EventPublishService(ns *Namespace, data *Service) (updateRequired
oldService.Addresses = newService.Addresses
k.PublishServiceAddresses = newService.Addresses
k.UpdateAllIngresses = true
updateRequired = true
case ADDED:
if service, ok := ns.Services[data.Name]; ok {
k.PublishServiceAddresses = data.Addresses
service.Addresses = data.Addresses
k.UpdateAllIngresses = true
updateRequired = true
return
}
logger.Errorf("Publish service '%s/%s' not found", data.Namespace, data.Name)
Expand All @@ -350,7 +348,6 @@ func (k *K8s) EventPublishService(ns *Namespace, data *Service) (updateRequired
k.PublishServiceAddresses = nil
service.Addresses = nil
k.UpdateAllIngresses = true
updateRequired = true
} else {
logger.Warningf("Publish service '%s/%s' not registered with controller, cannot delete !", data.Namespace, data.Name)
}
Expand Down

0 comments on commit 798e3f6

Please sign in to comment.