@@ -2627,14 +2627,14 @@ var _ = Describe("Metal3Machine manager", func() {
26272627
26282628 machineMgr , err := NewMachineManager (fakeClient , newCluster (clusterName ),
26292629 newMetal3Cluster (metal3ClusterName , bmcOwnerRef ,
2630- & infrav1.Metal3ClusterSpec {NoCloudProvider : true }, nil ,
2630+ & infrav1.Metal3ClusterSpec {NoCloudProvider : true , CloudProviderEnabled : false }, nil ,
26312631 ),
26322632 & clusterv1.Machine {}, & infrav1.Metal3Machine {}, logr .Discard (),
26332633 )
26342634 if tc .M3MHasHostAnnotation {
26352635 machineMgr , err = NewMachineManager (fakeClient , newCluster (clusterName ),
26362636 newMetal3Cluster (metal3ClusterName , bmcOwnerRef ,
2637- & infrav1.Metal3ClusterSpec {NoCloudProvider : true }, nil ,
2637+ & infrav1.Metal3ClusterSpec {NoCloudProvider : true , CloudProviderEnabled : false }, nil ,
26382638 ),
26392639 & clusterv1.Machine {}, & infrav1.Metal3Machine {
26402640 ObjectMeta : metav1.ObjectMeta {
@@ -2731,7 +2731,7 @@ var _ = Describe("Metal3Machine manager", func() {
27312731 M3MHasHostAnnotation : true ,
27322732 }),
27332733 )
2734- DescribeTable ("Test SetNodeProviderID with noCloudProvider set to false " ,
2734+ DescribeTable ("Test SetNodeProviderID with CloudProviderEnabled set to true " ,
27352735 func (tc testCaseSetNodePoviderID ) {
27362736 BMHHost := newBareMetalHost (baremetalhostName , nil , bmov1alpha1 .StateNone , nil , false , "metadata" , false , tc .HostID )
27372737 fakeClient := fake .NewClientBuilder ().WithScheme (s ).WithObjects (BMHHost ).Build ()
@@ -2744,7 +2744,7 @@ var _ = Describe("Metal3Machine manager", func() {
27442744
27452745 machineMgr , err := NewMachineManager (fakeClient , newCluster (clusterName ),
27462746 newMetal3Cluster (metal3ClusterName , bmcOwnerRef ,
2747- & infrav1.Metal3ClusterSpec {NoCloudProvider : false }, nil ,
2747+ & infrav1.Metal3ClusterSpec {NoCloudProvider : false , CloudProviderEnabled : true }, nil ,
27482748 ),
27492749 & clusterv1.Machine {}, & infrav1.Metal3Machine {
27502750 ObjectMeta : metav1.ObjectMeta {
0 commit comments