diff --git a/cmd/syncer/main.go b/cmd/syncer/main.go index 83ae090aa3..358964bc5f 100644 --- a/cmd/syncer/main.go +++ b/cmd/syncer/main.go @@ -275,8 +275,7 @@ func initSyncerComponents(ctx context.Context, clusterFlavor cnstypes.CnsCluster } var configInfo *config.ConfigurationInfo var err error - if clusterFlavor == cnstypes.CnsClusterFlavorVanilla && - commonco.ContainerOrchestratorUtility.IsFSSEnabled(ctx, common.CSIInternalGeneratedClusterID) { + if clusterFlavor == cnstypes.CnsClusterFlavorVanilla { configInfo, err = syncer.SyncerInitConfigInfo(ctx) if err != nil { log.Errorf("failed to initialize the configInfo. Err: %+v", err) diff --git a/pkg/common/unittestcommon/utils.go b/pkg/common/unittestcommon/utils.go index 45331e3172..65fa527c45 100644 --- a/pkg/common/unittestcommon/utils.go +++ b/pkg/common/unittestcommon/utils.go @@ -65,7 +65,6 @@ func GetFakeContainerOrchestratorInterface(orchestratorType int) (commonco.COCom "block-volume-snapshot": "true", "tkgs-ha": "true", "list-volumes": "true", - "csi-internal-generated-cluster-id": "true", "online-volume-extend": "true", "csi-windows-support": "true", "use-csinode-id": "true", diff --git a/pkg/csi/service/common/commonco/k8sorchestrator/k8sorchestrator.go b/pkg/csi/service/common/commonco/k8sorchestrator/k8sorchestrator.go index 637cd6a86c..1cb447ce63 100644 --- a/pkg/csi/service/common/commonco/k8sorchestrator/k8sorchestrator.go +++ b/pkg/csi/service/common/commonco/k8sorchestrator/k8sorchestrator.go @@ -366,7 +366,6 @@ func getReleasedVanillaFSS() map[string]struct{} { common.TopologyPreferentialDatastores: {}, common.MaxPVSCSITargetsPerVM: {}, common.MultiVCenterCSITopology: {}, - common.CSIInternalGeneratedClusterID: {}, common.TopologyAwareFileVolume: {}, } } diff --git a/pkg/csi/service/common/constants.go b/pkg/csi/service/common/constants.go index fc363d7d1a..f6a92d6953 100644 --- a/pkg/csi/service/common/constants.go +++ b/pkg/csi/service/common/constants.go @@ -422,9 +422,6 @@ const ( MaxPVSCSITargetsPerVM = "max-pvscsi-targets-per-vm" // MultiVCenterCSITopology is the feature gate for enabling multi vCenter topology support for vSphere CSI driver. MultiVCenterCSITopology = "multi-vcenter-csi-topology" - // CSIInternalGeneratedClusterID enables support to generate unique cluster - // ID internally if user doesn't provide it in vSphere config secret. - CSIInternalGeneratedClusterID = "csi-internal-generated-cluster-id" // TopologyAwareFileVolume enables provisioning of file volumes in a topology enabled environment TopologyAwareFileVolume = "topology-aware-file-volume" // PodVMOnStretchedSupervisor is the WCP FSS which determines if PodVM diff --git a/pkg/csi/service/driver.go b/pkg/csi/service/driver.go index ea22ab4f33..60b1f97ded 100644 --- a/pkg/csi/service/driver.go +++ b/pkg/csi/service/driver.go @@ -147,8 +147,7 @@ func (driver *vsphereCSIDriver) BeforeServe(ctx context.Context) error { return err } - if clusterFlavor == cnstypes.CnsClusterFlavorVanilla && - commonco.ContainerOrchestratorUtility.IsFSSEnabled(ctx, common.CSIInternalGeneratedClusterID) { + if clusterFlavor == cnstypes.CnsClusterFlavorVanilla { CSINamespace := common.GetCSINamespace() if cfg.Global.ClusterID == "" { var clusterID string diff --git a/pkg/syncer/metadatasyncer.go b/pkg/syncer/metadatasyncer.go index 115e5eb622..6574734afc 100644 --- a/pkg/syncer/metadatasyncer.go +++ b/pkg/syncer/metadatasyncer.go @@ -2057,8 +2057,7 @@ func ReloadConfiguration(metadataSyncer *metadataSyncInformer, reconnectToVCFrom log.Info("Reloading Configuration") var cfg *cnsconfig.Config var err error - if metadataSyncer.clusterFlavor == cnstypes.CnsClusterFlavorVanilla && - commonco.ContainerOrchestratorUtility.IsFSSEnabled(ctx, common.CSIInternalGeneratedClusterID) { + if metadataSyncer.clusterFlavor == cnstypes.CnsClusterFlavorVanilla { cfg, err = getConfig(ctx) } else { cfg, err = cnsconfig.GetConfig(ctx)