Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Zimin <[email protected]>
  • Loading branch information
AleksZimin committed Jan 27, 2025
1 parent 02645ca commit 40ad440
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func RunNodeSelectorReconciler(ctx context.Context, mgr manager.Manager, cfg con
}
log.Info("END reconcile of module pods.")
}

}
}()
}
Expand Down Expand Up @@ -251,10 +250,8 @@ func GetNodesBySelectorList(ctx context.Context, cl client.Client, log logger.Lo
log.Debug(fmt.Sprintf("[GetNodesBySelectorList] Found %d nodes: by selector: %+v.", len(selectedNodes.Items), nodeSelector))
log.Trace(fmt.Sprintf("[GetNodesBySelectorList] Nodes: %+v", selectedNodes.Items))

nodeNames := []string{}
for _, node := range selectedNodes.Items {
log.Debug(fmt.Sprintf("[GetNodesBySelectorList] Process node: %s", node.Name))
nodeNames = append(nodeNames, node.Name)
if _, ok := allSelectedNodesMap[node.Name]; !ok {
log.Debug(fmt.Sprintf("[GetNodesBySelectorList] Add node %s to allSelectedNodes.", node.Name))
allSelectedNodesMap[node.Name] = node
Expand Down

0 comments on commit 40ad440

Please sign in to comment.