diff --git a/azure/services/bastionhosts/spec_test.go b/azure/services/bastionhosts/spec_test.go index 20096fdffe3..44b55056501 100644 --- a/azure/services/bastionhosts/spec_test.go +++ b/azure/services/bastionhosts/spec_test.go @@ -20,7 +20,6 @@ import ( "context" "testing" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4" . "github.com/onsi/gomega" "k8s.io/utils/ptr" @@ -31,7 +30,7 @@ var ( fakeSKU = armnetwork.BastionHostSKUName("fake-SKU") fakeBastionHost = armnetwork.BastionHost{ Location: &fakeAzureBastionSpec.Location, - Name: to.Ptr("my-bastion-host"), + Name: ptr.To("my-bastion-host"), SKU: &armnetwork.SKU{Name: &fakeSKU}, } fakeAzureBastionSpec1 = AzureBastionSpec{ @@ -45,9 +44,9 @@ var ( } fakeBastionHostTags = map[string]*string{ - "sigs.k8s.io_cluster-api-provider-azure_cluster_cluster": to.Ptr("owned"), - "sigs.k8s.io_cluster-api-provider-azure_role": to.Ptr("Bastion"), - "Name": to.Ptr("my-bastion"), + "sigs.k8s.io_cluster-api-provider-azure_cluster_cluster": ptr.To("owned"), + "sigs.k8s.io_cluster-api-provider-azure_role": ptr.To("Bastion"), + "Name": ptr.To("my-bastion"), } ) diff --git a/azure/services/natgateways/spec_test.go b/azure/services/natgateways/spec_test.go index bb4874b3c5f..aa1bae7d7f1 100644 --- a/azure/services/natgateways/spec_test.go +++ b/azure/services/natgateways/spec_test.go @@ -20,7 +20,6 @@ import ( "context" "testing" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4" . "github.com/onsi/gomega" "k8s.io/utils/ptr" @@ -46,8 +45,8 @@ var ( NatGatewayIP: infrav1.PublicIPSpec{Name: "pip-node-subnet"}, } fakeNatGatewaysTags = map[string]*string{ - "sigs.k8s.io_cluster-api-provider-azure_cluster_cluster": to.Ptr("owned"), - "Name": to.Ptr("my-node-natgateway-1"), + "sigs.k8s.io_cluster-api-provider-azure_cluster_cluster": ptr.To("owned"), + "Name": ptr.To("my-node-natgateway-1"), } ) diff --git a/azure/services/roleassignments/spec_test.go b/azure/services/roleassignments/spec_test.go index cedf6820b40..12806ca7921 100644 --- a/azure/services/roleassignments/spec_test.go +++ b/azure/services/roleassignments/spec_test.go @@ -20,7 +20,6 @@ import ( "context" "testing" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v2" . "github.com/onsi/gomega" "k8s.io/utils/ptr" @@ -28,9 +27,9 @@ import ( var ( fakeRoleAssignment = armauthorization.RoleAssignment{ - ID: to.Ptr("fake-id"), - Name: to.Ptr("fake-name"), - Type: to.Ptr("fake-type"), + ID: ptr.To("fake-id"), + Name: ptr.To("fake-name"), + Type: ptr.To("fake-type"), } fakeRoleAssignmentSpec = RoleAssignmentSpec{ PrincipalID: ptr.To("fake-principal-id"), diff --git a/azure/services/routetables/spec_test.go b/azure/services/routetables/spec_test.go index 2c62183ee7e..2c4352e46a6 100644 --- a/azure/services/routetables/spec_test.go +++ b/azure/services/routetables/spec_test.go @@ -20,7 +20,6 @@ import ( "context" "testing" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4" . "github.com/onsi/gomega" "k8s.io/utils/ptr" @@ -28,9 +27,9 @@ import ( var ( fakeRouteTable = armnetwork.RouteTable{ - ID: to.Ptr("fake-id"), - Location: to.Ptr("fake-location"), - Name: to.Ptr("fake-name"), + ID: ptr.To("fake-id"), + Location: ptr.To("fake-location"), + Name: ptr.To("fake-name"), } fakeRouteTableSpec = RouteTableSpec{ Name: "test-rt-1", @@ -41,9 +40,9 @@ var ( }, } fakeRouteTableTags = map[string]*string{ - "sigs.k8s.io_cluster-api-provider-azure_cluster_cluster": to.Ptr("owned"), - "foo": to.Ptr("bar"), - "Name": to.Ptr("test-rt-1"), + "sigs.k8s.io_cluster-api-provider-azure_cluster_cluster": ptr.To("owned"), + "foo": ptr.To("bar"), + "Name": ptr.To("test-rt-1"), } ) diff --git a/azure/services/virtualnetworks/spec_test.go b/azure/services/virtualnetworks/spec_test.go index 379e0ff5b38..5e8acea266f 100644 --- a/azure/services/virtualnetworks/spec_test.go +++ b/azure/services/virtualnetworks/spec_test.go @@ -20,7 +20,6 @@ import ( "context" "testing" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4" . "github.com/onsi/gomega" "k8s.io/utils/ptr" @@ -71,10 +70,10 @@ var ( AdditionalTags: map[string]string{"foo": "bar"}, } fakeVNetTags = map[string]*string{ - "sigs.k8s.io_cluster-api-provider-azure_cluster_cluster": to.Ptr("owned"), - "sigs.k8s.io_cluster-api-provider-azure_role": to.Ptr("common"), - "foo": to.Ptr("bar"), - "Name": to.Ptr("test-vnet"), + "sigs.k8s.io_cluster-api-provider-azure_cluster_cluster": ptr.To("owned"), + "sigs.k8s.io_cluster-api-provider-azure_role": ptr.To("common"), + "foo": ptr.To("bar"), + "Name": ptr.To("test-vnet"), } ) diff --git a/azure/services/vnetpeerings/spec_test.go b/azure/services/vnetpeerings/spec_test.go index 1bc6ddde511..61e24951a2d 100644 --- a/azure/services/vnetpeerings/spec_test.go +++ b/azure/services/vnetpeerings/spec_test.go @@ -20,7 +20,6 @@ import ( "context" "testing" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v4" . "github.com/onsi/gomega" "k8s.io/utils/ptr" @@ -29,9 +28,9 @@ import ( var ( fakeVnetPeering = armnetwork.VirtualNetworkPeering{ - ID: to.Ptr("fake-id"), - Name: to.Ptr("fake-name"), - Type: to.Ptr("fake-type"), + ID: ptr.To("fake-id"), + Name: ptr.To("fake-name"), + Type: ptr.To("fake-type"), } fakeVnetPeeringSpec = VnetPeeringSpec{ PeeringName: "hub-to-spoke",