Skip to content

Commit 84e438c

Browse files
Remove FSS csi-internal-generated-cluster-id
1 parent f03e1fe commit 84e438c

File tree

6 files changed

+3
-11
lines changed

6 files changed

+3
-11
lines changed

cmd/syncer/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,7 @@ func initSyncerComponents(ctx context.Context, clusterFlavor cnstypes.CnsCluster
275275
}
276276
var configInfo *config.ConfigurationInfo
277277
var err error
278-
if clusterFlavor == cnstypes.CnsClusterFlavorVanilla &&
279-
commonco.ContainerOrchestratorUtility.IsFSSEnabled(ctx, common.CSIInternalGeneratedClusterID) {
278+
if clusterFlavor == cnstypes.CnsClusterFlavorVanilla {
280279
configInfo, err = syncer.SyncerInitConfigInfo(ctx)
281280
if err != nil {
282281
log.Errorf("failed to initialize the configInfo. Err: %+v", err)

pkg/common/unittestcommon/utils.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ func GetFakeContainerOrchestratorInterface(orchestratorType int) (commonco.COCom
6565
"block-volume-snapshot": "true",
6666
"tkgs-ha": "true",
6767
"list-volumes": "true",
68-
"csi-internal-generated-cluster-id": "true",
6968
"online-volume-extend": "true",
7069
"csi-windows-support": "true",
7170
"use-csinode-id": "true",

pkg/csi/service/common/commonco/k8sorchestrator/k8sorchestrator.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,6 @@ func getReleasedVanillaFSS() map[string]struct{} {
366366
common.TopologyPreferentialDatastores: {},
367367
common.MaxPVSCSITargetsPerVM: {},
368368
common.MultiVCenterCSITopology: {},
369-
common.CSIInternalGeneratedClusterID: {},
370369
common.TopologyAwareFileVolume: {},
371370
}
372371
}

pkg/csi/service/common/constants.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,6 @@ const (
422422
MaxPVSCSITargetsPerVM = "max-pvscsi-targets-per-vm"
423423
// MultiVCenterCSITopology is the feature gate for enabling multi vCenter topology support for vSphere CSI driver.
424424
MultiVCenterCSITopology = "multi-vcenter-csi-topology"
425-
// CSIInternalGeneratedClusterID enables support to generate unique cluster
426-
// ID internally if user doesn't provide it in vSphere config secret.
427-
CSIInternalGeneratedClusterID = "csi-internal-generated-cluster-id"
428425
// TopologyAwareFileVolume enables provisioning of file volumes in a topology enabled environment
429426
TopologyAwareFileVolume = "topology-aware-file-volume"
430427
// PodVMOnStretchedSupervisor is the WCP FSS which determines if PodVM

pkg/csi/service/driver.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ func (driver *vsphereCSIDriver) BeforeServe(ctx context.Context) error {
147147
return err
148148
}
149149

150-
if clusterFlavor == cnstypes.CnsClusterFlavorVanilla &&
151-
commonco.ContainerOrchestratorUtility.IsFSSEnabled(ctx, common.CSIInternalGeneratedClusterID) {
150+
if clusterFlavor == cnstypes.CnsClusterFlavorVanilla {
152151
CSINamespace := common.GetCSINamespace()
153152
if cfg.Global.ClusterID == "" {
154153
var clusterID string

pkg/syncer/metadatasyncer.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,8 +2057,7 @@ func ReloadConfiguration(metadataSyncer *metadataSyncInformer, reconnectToVCFrom
20572057
log.Info("Reloading Configuration")
20582058
var cfg *cnsconfig.Config
20592059
var err error
2060-
if metadataSyncer.clusterFlavor == cnstypes.CnsClusterFlavorVanilla &&
2061-
commonco.ContainerOrchestratorUtility.IsFSSEnabled(ctx, common.CSIInternalGeneratedClusterID) {
2060+
if metadataSyncer.clusterFlavor == cnstypes.CnsClusterFlavorVanilla {
20622061
cfg, err = getConfig(ctx)
20632062
} else {
20642063
cfg, err = cnsconfig.GetConfig(ctx)

0 commit comments

Comments
 (0)