mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-29 15:19:27 +00:00
Don't return object because double update might revert IP change
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user