Skip to content

Commit 829c78d

Browse files
committed
Fixup
1 parent 471a9cd commit 829c78d

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

controllers/nodegroup_controller.go

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,9 @@ func (r *NodeGroupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
183183

184184
for _, node := range nodes.Items {
185185
nodeNameParts := strings.Split(node.Name, "-")
186-
{
187-
found := false
188-
for _, part := range nodeNameParts {
189-
if stringIn(part, nodeGroup.Spec.NodeGroupNames) {
190-
matchingStrings = append(matchingStrings, node.Name)
191-
found = true
192-
break
193-
}
194-
}
195-
if found {
186+
for _, part := range nodeNameParts {
187+
if stringIn(part, nodeGroup.Spec.NodeGroupNames) {
188+
matchingStrings = append(matchingStrings, node.Name)
196189
break
197190
}
198191
}

0 commit comments

Comments
 (0)