@@ -35,7 +35,6 @@ import (
3535 "k8s.io/client-go/util/retry"
3636 "sigs.k8s.io/controller-runtime/pkg/client"
3737
38- infrav1beta1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta1"
3938 infrav1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2"
4039 "sigs.k8s.io/cluster-api-provider-aws/v2/pkg/cloud/scope"
4140 "sigs.k8s.io/cluster-api-provider-aws/v2/pkg/cloud/services"
@@ -157,7 +156,7 @@ func TestAWSClusterReconcilerIntegrationTests(t *testing.T) {
157156 g .Expect (cluster .Spec .ControlPlaneEndpoint .Host ).To (BeEmpty ())
158157 g .Expect (cluster .Spec .ControlPlaneEndpoint .Port ).To (BeZero ())
159158 expectAWSClusterConditions (g , cs .AWSCluster , []conditionAssertion {
160- {conditionType : infrav1beta1 .LoadBalancerReadyCondition , status : corev1 .ConditionFalse , severity : clusterv1beta1 .ConditionSeverityInfo , reason : infrav1beta1 .WaitForExternalControlPlaneEndpointReason },
159+ {conditionType : infrav1 .LoadBalancerReadyCondition , status : corev1 .ConditionFalse , severity : clusterv1beta1 .ConditionSeverityInfo , reason : infrav1 .WaitForExternalControlPlaneEndpointReason },
161160 })
162161 // Mimicking an external operator patching the cluster with an already provisioned Load Balancer:
163162 // this could be done by a human who provisioned a LB, or by a Control Plane provider.
@@ -177,11 +176,11 @@ func TestAWSClusterReconcilerIntegrationTests(t *testing.T) {
177176 g .Expect (err ).To (BeNil ())
178177 g .Expect (cs .VPC ().ID ).To (Equal ("vpc-exists" ))
179178 expectAWSClusterConditions (g , cs .AWSCluster , []conditionAssertion {
180- {conditionType : infrav1beta1 .ClusterSecurityGroupsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
181- {conditionType : infrav1beta1 .BastionHostReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
182- {conditionType : infrav1beta1 .VpcReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
183- {conditionType : infrav1beta1 .SubnetsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
184- {conditionType : infrav1beta1 .LoadBalancerReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
179+ {conditionType : infrav1 .ClusterSecurityGroupsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
180+ {conditionType : infrav1 .BastionHostReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
181+ {conditionType : infrav1 .VpcReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
182+ {conditionType : infrav1 .SubnetsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
183+ {conditionType : infrav1 .LoadBalancerReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
185184 })
186185 })
187186 t .Run ("Should successfully reconcile AWSCluster creation with unmanaged VPC" , func (t * testing.T ) {
@@ -276,10 +275,10 @@ func TestAWSClusterReconcilerIntegrationTests(t *testing.T) {
276275 g .Expect (err ).To (BeNil ())
277276 g .Expect (cs .VPC ().ID ).To (Equal ("vpc-exists" ))
278277 expectAWSClusterConditions (g , cs .AWSCluster , []conditionAssertion {
279- {conditionType : infrav1beta1 .ClusterSecurityGroupsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
280- {conditionType : infrav1beta1 .BastionHostReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
281- {conditionType : infrav1beta1 .VpcReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
282- {conditionType : infrav1beta1 .SubnetsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
278+ {conditionType : infrav1 .ClusterSecurityGroupsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
279+ {conditionType : infrav1 .BastionHostReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
280+ {conditionType : infrav1 .VpcReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
281+ {conditionType : infrav1 .SubnetsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
283282 })
284283 })
285284 t .Run ("Should successfully reconcile AWSCluster creation with unmanaged VPC and a network type load balancer" , func (t * testing.T ) {
@@ -383,10 +382,10 @@ func TestAWSClusterReconcilerIntegrationTests(t *testing.T) {
383382 g .Expect (err ).To (BeNil ())
384383 g .Expect (cs .VPC ().ID ).To (Equal ("vpc-exists" ))
385384 expectAWSClusterConditions (g , cs .AWSCluster , []conditionAssertion {
386- {conditionType : infrav1beta1 .ClusterSecurityGroupsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
387- {conditionType : infrav1beta1 .BastionHostReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
388- {conditionType : infrav1beta1 .VpcReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
389- {conditionType : infrav1beta1 .SubnetsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
385+ {conditionType : infrav1 .ClusterSecurityGroupsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
386+ {conditionType : infrav1 .BastionHostReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
387+ {conditionType : infrav1 .VpcReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
388+ {conditionType : infrav1 .SubnetsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
390389 })
391390 })
392391 t .Run ("Should successfully reconcile AWSCluster creation with managed VPC" , func (t * testing.T ) {
@@ -476,10 +475,10 @@ func TestAWSClusterReconcilerIntegrationTests(t *testing.T) {
476475 g .Expect (err ).To (BeNil ())
477476 g .Expect (cs .VPC ().ID ).To (Equal ("vpc-new" ))
478477 expectAWSClusterConditions (g , cs .AWSCluster , []conditionAssertion {
479- {conditionType : infrav1beta1 .ClusterSecurityGroupsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
480- {conditionType : infrav1beta1 .BastionHostReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
481- {conditionType : infrav1beta1 .VpcReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
482- {conditionType : infrav1beta1 .SubnetsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
478+ {conditionType : infrav1 .ClusterSecurityGroupsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
479+ {conditionType : infrav1 .BastionHostReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
480+ {conditionType : infrav1 .VpcReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
481+ {conditionType : infrav1 .SubnetsReadyCondition , status : corev1 .ConditionTrue , severity : "" , reason : "" },
483482 })
484483
485484 // Information should get written back into the `ClusterScope` object. Keeping it up to date means that
@@ -652,15 +651,15 @@ func TestAWSClusterReconcilerIntegrationTests(t *testing.T) {
652651 _ , err = reconciler .reconcileDelete (ctx , cs )
653652 g .Expect (err ).To (BeNil ())
654653 expectAWSClusterConditions (g , cs .AWSCluster , []conditionAssertion {
655- {infrav1beta1 .LoadBalancerReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
656- {infrav1beta1 .BastionHostReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
657- {infrav1beta1 .SecondaryCidrsReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletingReason },
658- {infrav1beta1 .RouteTablesReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
659- {infrav1beta1 .VpcEndpointsReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
660- {infrav1beta1 .NatGatewaysReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
661- {infrav1beta1 .InternetGatewayReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
662- {infrav1beta1 .SubnetsReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
663- {infrav1beta1 .VpcReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
654+ {infrav1 .LoadBalancerReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
655+ {infrav1 .BastionHostReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
656+ {infrav1 .SecondaryCidrsReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletingReason },
657+ {infrav1 .RouteTablesReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
658+ {infrav1 .VpcEndpointsReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
659+ {infrav1 .NatGatewaysReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
660+ {infrav1 .InternetGatewayReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
661+ {infrav1 .SubnetsReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
662+ {infrav1 .VpcReadyCondition , corev1 .ConditionFalse , clusterv1beta1 .ConditionSeverityInfo , clusterv1beta1 .DeletedReason },
664663 })
665664 })
666665}
0 commit comments