Skip to content

Commit

Permalink
Add userAssignedIdentities client to cluster manager
Browse files Browse the repository at this point in the history
  • Loading branch information
tsatam committed Sep 24, 2024
1 parent 1441645 commit 692129e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ type manager struct {
fpPrivateEndpoints network.PrivateEndpointsClient // TODO: use armFPPrivateEndpoints instead.
armFPPrivateEndpoints armnetwork.PrivateEndpointsClient
armRPPrivateLinkServices armnetwork.PrivateLinkServicesClient
userAssignedIdentities armmsi.UserAssignedIdentitiesClient

dns dns.Manager
storage storage.Manager
Expand Down Expand Up @@ -315,6 +316,12 @@ func New(ctx context.Context, log *logrus.Entry, _env env.Interface, db database

m.msiDataplane = msiDataplane
m.clusterMsiKeyVaultStore = store.NewMsiKeyVaultStore(clusterMsiSecretsClient)

userAssignedIdentitiesClient, err := armmsi.NewUserAssignedIdentitiesClient(r.SubscriptionID, fpCredClusterTenant, clientOptions)
if err != nil {
return nil, err
}
m.userAssignedIdentities = userAssignedIdentitiesClient
}

return m, nil
Expand Down

0 comments on commit 692129e

Please sign in to comment.