@@ -264,7 +264,7 @@ func TestNormalReconciliationFunction(t *testing.T) {
264264 conditionAssertion : []conditionAssertion {{infrastructurev1beta2 .InstanceReadyCondition , corev1 .ConditionFalse , clusterv1 .ConditionSeverityError , infrastructurev1beta2 .InstanceIPAddressNotFound }},
265265 testSpecificSetup : func (machineScope * scope.MachineScope , computeClient * mock_compute.MockComputeClient , vcnClient * mock_vcn.MockClient , nlbclient * mock_nlb.MockNetworkLoadBalancerClient ) {
266266 machineScope .Machine .ObjectMeta .Labels = make (map [string ]string )
267- machineScope .Machine .ObjectMeta .Labels [clusterv1 .MachineControlPlaneLabelName ] = "true"
267+ machineScope .Machine .ObjectMeta .Labels [clusterv1 .MachineControlPlaneLabel ] = "true"
268268 computeClient .EXPECT ().GetInstance (gomock .Any (), gomock .Eq (core.GetInstanceRequest {
269269 InstanceId : common .String ("test" ),
270270 })).
@@ -287,7 +287,7 @@ func TestNormalReconciliationFunction(t *testing.T) {
287287 errorExpected : false ,
288288 testSpecificSetup : func (machineScope * scope.MachineScope , computeClient * mock_compute.MockComputeClient , vcnClient * mock_vcn.MockClient , nlbClient * mock_nlb.MockNetworkLoadBalancerClient ) {
289289 machineScope .Machine .ObjectMeta .Labels = make (map [string ]string )
290- machineScope .Machine .ObjectMeta .Labels [clusterv1 .MachineControlPlaneLabelName ] = "true"
290+ machineScope .Machine .ObjectMeta .Labels [clusterv1 .MachineControlPlaneLabel ] = "true"
291291 computeClient .EXPECT ().GetInstance (gomock .Any (), gomock .Eq (core.GetInstanceRequest {
292292 InstanceId : common .String ("test" ),
293293 })).
@@ -344,7 +344,7 @@ func TestNormalReconciliationFunction(t *testing.T) {
344344 errorExpected : false ,
345345 testSpecificSetup : func (machineScope * scope.MachineScope , computeClient * mock_compute.MockComputeClient , vcnClient * mock_vcn.MockClient , nlbClient * mock_nlb.MockNetworkLoadBalancerClient ) {
346346 machineScope .Machine .ObjectMeta .Labels = make (map [string ]string )
347- machineScope .Machine .ObjectMeta .Labels [clusterv1 .MachineControlPlaneLabelName ] = "true"
347+ machineScope .Machine .ObjectMeta .Labels [clusterv1 .MachineControlPlaneLabel ] = "true"
348348 computeClient .EXPECT ().GetInstance (gomock .Any (), gomock .Eq (core.GetInstanceRequest {
349349 InstanceId : common .String ("test" ),
350350 })).
@@ -425,7 +425,7 @@ func TestNormalReconciliationFunction(t *testing.T) {
425425 Address : "1.1.1.1" ,
426426 },
427427 }
428- machineScope .Machine .ObjectMeta .Labels [clusterv1 .MachineControlPlaneLabelName ] = "true"
428+ machineScope .Machine .ObjectMeta .Labels [clusterv1 .MachineControlPlaneLabel ] = "true"
429429 computeClient .EXPECT ().GetInstance (gomock .Any (), gomock .Eq (core.GetInstanceRequest {
430430 InstanceId : common .String ("test" ),
431431 })).
@@ -478,7 +478,7 @@ func TestNormalReconciliationFunction(t *testing.T) {
478478 errorExpected : true ,
479479 testSpecificSetup : func (machineScope * scope.MachineScope , computeClient * mock_compute.MockComputeClient , vcnClient * mock_vcn.MockClient , nlbClient * mock_nlb.MockNetworkLoadBalancerClient ) {
480480 machineScope .Machine .ObjectMeta .Labels = make (map [string ]string )
481- machineScope .Machine .ObjectMeta .Labels [clusterv1 .MachineControlPlaneLabelName ] = "true"
481+ machineScope .Machine .ObjectMeta .Labels [clusterv1 .MachineControlPlaneLabel ] = "true"
482482 computeClient .EXPECT ().GetInstance (gomock .Any (), gomock .Eq (core.GetInstanceRequest {
483483 InstanceId : common .String ("test" ),
484484 })).
@@ -751,7 +751,7 @@ func TestMachineReconciliationDeletionNormal(t *testing.T) {
751751 conditionAssertion : []conditionAssertion {{infrastructurev1beta2 .InstanceReadyCondition , corev1 .ConditionFalse , clusterv1 .ConditionSeverityInfo , infrastructurev1beta2 .InstanceTerminatingReason }},
752752 testSpecificSetup : func (machineScope * scope.MachineScope , computeClient * mock_compute.MockComputeClient , vcnClient * mock_vcn.MockClient , nlbClient * mock_nlb.MockNetworkLoadBalancerClient ) {
753753 machineScope .Machine .ObjectMeta .Labels = make (map [string ]string )
754- machineScope .Machine .ObjectMeta .Labels [clusterv1 .MachineControlPlaneLabelName ] = "true"
754+ machineScope .Machine .ObjectMeta .Labels [clusterv1 .MachineControlPlaneLabel ] = "true"
755755 computeClient .EXPECT ().GetInstance (gomock .Any (), gomock .Eq (core.GetInstanceRequest {
756756 InstanceId : common .String ("test" ),
757757 })).
@@ -814,7 +814,7 @@ func TestMachineReconciliationDeletionNormal(t *testing.T) {
814814 conditionAssertion : []conditionAssertion {{infrastructurev1beta2 .InstanceReadyCondition , corev1 .ConditionFalse , clusterv1 .ConditionSeverityInfo , infrastructurev1beta2 .InstanceNotFoundReason }},
815815 testSpecificSetup : func (machineScope * scope.MachineScope , computeClient * mock_compute.MockComputeClient , vcnClient * mock_vcn.MockClient , nlbClient * mock_nlb.MockNetworkLoadBalancerClient ) {
816816 machineScope .Machine .ObjectMeta .Labels = make (map [string ]string )
817- machineScope .Machine .ObjectMeta .Labels [clusterv1 .MachineControlPlaneLabelName ] = "true"
817+ machineScope .Machine .ObjectMeta .Labels [clusterv1 .MachineControlPlaneLabel ] = "true"
818818 computeClient .EXPECT ().GetInstance (gomock .Any (), gomock .Eq (core.GetInstanceRequest {
819819 InstanceId : common .String ("test" ),
820820 })).
@@ -918,7 +918,7 @@ func getOciMachine() *infrastructurev1beta2.OCIMachine {
918918 Namespace : "test" ,
919919 UID : "uid" ,
920920 Labels : map [string ]string {
921- clusterv1 .ClusterLabelName : "test-cluster" ,
921+ clusterv1 .ClusterNameLabel : "test-cluster" ,
922922 },
923923 OwnerReferences : []metav1.OwnerReference {
924924 {
0 commit comments