Skip to content

Commit 58ee3d4

Browse files
committed
make sure nodegroups are updates in the coreweave manager
1 parent f0e08c6 commit 58ee3d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cluster-autoscaler/cloudprovider/coreweave/coreweave_manager.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ func (m *CoreWeaveManager) UpdateNodeGroup() ([]cloudprovider.NodeGroup, error)
122122
// If no node pools are found, return an empty slice
123123
if len(nodepools) == 0 {
124124
klog.Info("No node pools found, returning empty node groups")
125-
return []cloudprovider.NodeGroup{}, nil
125+
m.nodeGroups = []cloudprovider.NodeGroup{}
126+
return m.nodeGroups, nil
126127
}
127128
klog.V(4).Infof("Found %d node pools", len(nodepools))
128129
m.nodeGroups = make([]cloudprovider.NodeGroup, len(nodepools))

0 commit comments

Comments
 (0)