Skip to content

Commit

Permalink
Init shared resources client
Browse files Browse the repository at this point in the history
Init clients related to shared resources
  • Loading branch information
TaoZou1 committed Jan 15, 2025
1 parent 6fd18c9 commit fba0f5f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/nsx/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,13 @@ func GetClient(cf *config.NSXOperatorConfig) *Client {

subnetConnectionBindingMapsClient := subnets.NewSubnetConnectionBindingMapsClient(restConnector(cluster))

certificateClient := infra.NewCertificatesClient(restConnector(cluster))
shareClient := infra.NewSharesClient(restConnector(cluster))
sharedResourceClient := shares.NewResourcesClient(restConnector(cluster))
lbAppProfileClient := infra.NewLbAppProfilesClient(restConnector(cluster))
lbPersistenceProfilesClient := infra.NewLbPersistenceProfilesClient(restConnector(cluster))
lbMonitorProfilesClient := infra.NewLbMonitorProfilesClient(restConnector(cluster))

nsxChecker := &NSXHealthChecker{
cluster: cluster,
}
Expand Down Expand Up @@ -252,6 +259,12 @@ func GetClient(cf *config.NSXOperatorConfig) *Client {
TransitGatewayClient: transitGatewayClient,
TransitGatewayAttachmentClient: transitGatewayAttachmentClient,
SubnetConnectionBindingMapsClient: subnetConnectionBindingMapsClient,
CertificateClient: certificateClient,
ShareClient: shareClient,
SharedResourceClient: sharedResourceClient,
LbAppProfileClient: lbAppProfileClient,
LbPersistenceProfilesClient: lbPersistenceProfilesClient,
LbMonitorProfilesClient: lbMonitorProfilesClient,
}
// NSX version check will be restarted during SecurityPolicy reconcile
// So, it's unnecessary to exit even if failed in the first time
Expand Down

0 comments on commit fba0f5f

Please sign in to comment.