Skip to content

Commit

Permalink
Update controllers/dataplane/openstackdataplanenodeset_controller.go
Browse files Browse the repository at this point in the history
Co-authored-by: Fabricio Aguiar <[email protected]>
  • Loading branch information
bshephar and fao89 committed Oct 11, 2024
1 parent d28f517 commit 102a034
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions controllers/dataplane/openstackdataplanenodeset_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,14 @@ func (r *OpenStackDataPlaneNodeSetReconciler) machineConfigWatcherFn(
return nil
}

listOpts := []client.ListOption{
client.InNamespace(obj.GetNamespace()),
}
if err := r.Client.List(ctx, nodeSets, listOpts...); err != nil {
Log.Error(err, "Unable to retrieve OpenStackDataPlaneNodeSetList")
return nil
}

requests := make([]reconcile.Request, 0, len(nodeSets.Items))
for _, nodeSet := range nodeSets.Items {
requests = append(requests, reconcile.Request{
Expand Down

0 comments on commit 102a034

Please sign in to comment.