diff --git a/pkg/registry/core/service/ipallocator/allocator.go b/pkg/registry/core/service/ipallocator/allocator.go index 722d299683c..fb421e4e9c5 100644 --- a/pkg/registry/core/service/ipallocator/allocator.go +++ b/pkg/registry/core/service/ipallocator/allocator.go @@ -225,7 +225,9 @@ func (r *Range) Restore(net *net.IPNet, data []byte) error { if !ok { return fmt.Errorf("not a snapshottable allocator") } - snapshottable.Restore(net.String(), data) + if err := snapshottable.Restore(net.String(), data); err != nil { + return fmt.Errorf("restoring snapshot encountered %v", err) + } return nil }