Skip to content

Commit 4f75005

Browse files
Remove FSS csi-internal-generated-cluster-id
1 parent 081b9bc commit 4f75005

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
@@ -274,8 +274,7 @@ func initSyncerComponents(ctx context.Context, clusterFlavor cnstypes.CnsCluster
274274
}
275275
var configInfo *config.ConfigurationInfo
276276
var err error
277-
if clusterFlavor == cnstypes.CnsClusterFlavorVanilla &&
278-
commonco.ContainerOrchestratorUtility.IsFSSEnabled(ctx, common.CSIInternalGeneratedClusterID) {
277+
if clusterFlavor == cnstypes.CnsClusterFlavorVanilla {
279278
configInfo, err = syncer.SyncerInitConfigInfo(ctx)
280279
if err != nil {
281280
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
@@ -61,7 +61,6 @@ func GetFakeContainerOrchestratorInterface(orchestratorType int) (commonco.COCom
6161
"block-volume-snapshot": "true",
6262
"tkgs-ha": "true",
6363
"list-volumes": "true",
64-
"csi-internal-generated-cluster-id": "true",
6564
"online-volume-extend": "true",
6665
"async-query-volume": "true",
6766
"csi-windows-support": "true",

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@ func getReleasedVanillaFSS() map[string]struct{} {
363363
common.TopologyPreferentialDatastores: {},
364364
common.MaxPVSCSITargetsPerVM: {},
365365
common.MultiVCenterCSITopology: {},
366-
common.CSIInternalGeneratedClusterID: {},
367366
common.TopologyAwareFileVolume: {},
368367
}
369368
}

pkg/csi/service/common/constants.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,6 @@ const (
407407
MaxPVSCSITargetsPerVM = "max-pvscsi-targets-per-vm"
408408
// MultiVCenterCSITopology is the feature gate for enabling multi vCenter topology support for vSphere CSI driver.
409409
MultiVCenterCSITopology = "multi-vcenter-csi-topology"
410-
// CSIInternalGeneratedClusterID enables support to generate unique cluster
411-
// ID internally if user doesn't provide it in vSphere config secret.
412-
CSIInternalGeneratedClusterID = "csi-internal-generated-cluster-id"
413410
// TopologyAwareFileVolume enables provisioning of file volumes in a topology enabled environment
414411
TopologyAwareFileVolume = "topology-aware-file-volume"
415412
// 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)