Skip to content

Commit

Permalink
delete unused old sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
bitoku committed Jun 7, 2024
1 parent fdd0db8 commit 6102c5d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions pkg/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ type manager struct {
armPublicIPAddresses armnetwork.PublicIPAddressesClient
loadBalancers network.LoadBalancersClient // TODO: use armLoadBalancers instead.
armLoadBalancers armnetwork.LoadBalancersClient
privateEndpoints network.PrivateEndpointsClient // TODO: use armPrivateEndpoints instead.
armPrivateEndpoints armnetwork.PrivateEndpointsClient
securityGroups network.SecurityGroupsClient // TODO: use armSecurityGroups instead.
armSecurityGroups armnetwork.SecurityGroupsClient
Expand All @@ -91,8 +90,7 @@ type manager struct {
roleAssignments authorization.RoleAssignmentsClient
roleDefinitions authorization.RoleDefinitionsClient
denyAssignments authorization.DenyAssignmentClient
fpPrivateEndpoints network.PrivateEndpointsClient // TODO: use armPrivateEndpoints instead.
rpPrivateLinkServices network.PrivateLinkServicesClient // TODO: use armRPPrivateLinkServices instead.
fpPrivateEndpoints network.PrivateEndpointsClient // TODO: use armPrivateEndpoints instead.
armRPPrivateLinkServices armnetwork.PrivateLinkServicesClient

dns dns.Manager
Expand Down Expand Up @@ -149,12 +147,6 @@ func New(ctx context.Context, log *logrus.Entry, _env env.Interface, db database
return nil, err
}

// TODO: Delete once the replacement to track2 is done.
msiAuthorizer, err := _env.NewMSIAuthorizer(_env.Environment().ResourceManagerScope)
if err != nil {
return nil, err
}

msiCredential, err := _env.NewMSITokenCredential()
if err != nil {
return nil, err
Expand Down Expand Up @@ -229,7 +221,6 @@ func New(ctx context.Context, log *logrus.Entry, _env env.Interface, db database
armPublicIPAddresses: armPublicIPAddressesClient,
loadBalancers: network.NewLoadBalancersClient(_env.Environment(), r.SubscriptionID, fpAuthorizer),
armLoadBalancers: armLoadBalancersClient,
privateEndpoints: network.NewPrivateEndpointsClient(_env.Environment(), r.SubscriptionID, fpAuthorizer),
armPrivateEndpoints: armPrivateEndpoints,
securityGroups: network.NewSecurityGroupsClient(_env.Environment(), r.SubscriptionID, fpAuthorizer),
armSecurityGroups: armSecurityGroupsClient,
Expand All @@ -242,7 +233,6 @@ func New(ctx context.Context, log *logrus.Entry, _env env.Interface, db database
roleDefinitions: authorization.NewRoleDefinitionsClient(_env.Environment(), r.SubscriptionID, fpAuthorizer),
denyAssignments: authorization.NewDenyAssignmentsClient(_env.Environment(), r.SubscriptionID, fpAuthorizer),
fpPrivateEndpoints: network.NewPrivateEndpointsClient(_env.Environment(), _env.SubscriptionID(), localFPAuthorizer),
rpPrivateLinkServices: network.NewPrivateLinkServicesClient(_env.Environment(), _env.SubscriptionID(), msiAuthorizer),
armRPPrivateLinkServices: armRPPrivateLinkServices,

dns: dns.NewManager(_env, localFPAuthorizer),
Expand Down

0 comments on commit 6102c5d

Please sign in to comment.