Don't return object because double update might revert IP change

This commit is contained in:
Darren Shepherd 2019-02-28 12:04:02 -07:00
parent 2c398c5d5f
commit 964cebb070

View File

@ -109,7 +109,9 @@ func (h *handler) onChange(svc *core.Service) (runtime.Object, error) {
return svc, err
}
return h.updateService(svc)
// Don't return service because we don't want another update
_, err := h.updateService(svc)
return nil, err
}
func (h *handler) updateService(svc *core.Service) (runtime.Object, error) {