From fba0f5f92cc25af3db7fe8d73453e9e818fc2d8a Mon Sep 17 00:00:00 2001 From: Tao Zou Date: Wed, 15 Jan 2025 13:07:42 +0800 Subject: [PATCH] Init shared resources client Init clients related to shared resources --- pkg/nsx/client.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkg/nsx/client.go b/pkg/nsx/client.go index 69a9462b7..bb2b981f6 100644 --- a/pkg/nsx/client.go +++ b/pkg/nsx/client.go @@ -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, } @@ -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