We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f012e62 commit d3a8ceaCopy full SHA for d3a8cea
openshift/pkg/infraclustercontroller/openstackcluster.go
@@ -355,6 +355,10 @@ func (r *OpenShiftClusterReconciler) getDefaultSubnetFromMachines(ctx context.Co
355
return nil, fmt.Errorf("listing control plane machines: %w", err)
356
}
357
358
+ if len(mapiMachines.Items) == 0 {
359
+ return nil, fmt.Errorf("no control plane machines found")
360
+ }
361
+
362
apiServerInternalIPs := make([]net.IP, len(platformStatus.APIServerInternalIPs))
363
for i, ipStr := range platformStatus.APIServerInternalIPs {
364
apiServerInternalIPs[i] = net.ParseIP(ipStr)
0 commit comments