Pass resource version to storage List operation.
This commit is contained in:
@@ -96,7 +96,8 @@ func (c *Repair) RunOnce() error {
|
||||
}
|
||||
|
||||
ctx := api.WithNamespace(api.NewDefaultContext(), api.NamespaceAll)
|
||||
list, err := c.registry.ListServices(ctx, labels.Everything(), fields.Everything())
|
||||
options := &api.ListOptions{ResourceVersion: latest.ObjectMeta.ResourceVersion}
|
||||
list, err := c.registry.ListServices(ctx, labels.Everything(), fields.Everything(), options)
|
||||
if err != nil {
|
||||
return fmt.Errorf("unable to refresh the service IP block: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user