mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Don't return object because double update might revert IP change
This commit is contained in:
parent
2c398c5d5f
commit
964cebb070
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user