@@ -471,8 +471,6 @@ func makeStorageClass(scName string, mode *storagev1.VolumeBindingMode) *storage
471
471
}
472
472
473
473
func TestAnnealMigrationAnnotations (t * testing.T ) {
474
- defer featuregatetesting .SetFeatureGateDuringTest (t , utilfeature .DefaultFeatureGate , features .CSIMigration , true )()
475
-
476
474
const testPlugin = "non-migrated-plugin"
477
475
const gcePlugin = "kubernetes.io/gce-pd"
478
476
const gceDriver = "pd.csi.storage.gke.io"
@@ -687,7 +685,7 @@ func TestModifyDeletionFinalizers(t *testing.T) {
687
685
volumeAnnotations : map [string ]string {volume .AnnDynamicallyProvisioned : gcePlugin , volume .AnnMigratedTo : gceDriver },
688
686
expVolumeFinalizers : []string {volume .PVDeletionProtectionFinalizer },
689
687
expModified : true ,
690
- migratedDriverGates : []featuregate.Feature {features .CSIMigration , features . CSIMigrationGCE },
688
+ migratedDriverGates : []featuregate.Feature {features .CSIMigrationGCE },
691
689
},
692
690
{
693
691
// csi-migration is not completely enabled as the specific plugin feature is not present. This is equivalent
@@ -696,7 +694,7 @@ func TestModifyDeletionFinalizers(t *testing.T) {
696
694
initialVolume : newVolumeWithFinalizers ("volume-13-8" , "1Gi" , "uid11-23" , "claim11-23" , v1 .VolumeBound , v1 .PersistentVolumeReclaimDelete , classCopper , []string {volume .PVDeletionProtectionFinalizer }, volume .AnnDynamicallyProvisioned , volume .AnnBoundByController ),
697
695
expVolumeFinalizers : []string {volume .PVDeletionInTreeProtectionFinalizer },
698
696
expModified : true ,
699
- migratedDriverGates : []featuregate.Feature {features . CSIMigration },
697
+ migratedDriverGates : []featuregate.Feature {},
700
698
},
701
699
{
702
700
// same as 13-8 but multiple finalizers exists, only the pv deletion protection finalizer needs to be
@@ -705,7 +703,7 @@ func TestModifyDeletionFinalizers(t *testing.T) {
705
703
initialVolume : newVolumeWithFinalizers ("volume-13-9" , "1Gi" , "uid11-23" , "claim11-23" , v1 .VolumeBound , v1 .PersistentVolumeReclaimDelete , classCopper , []string {volume .PVDeletionProtectionFinalizer , customFinalizer }, volume .AnnDynamicallyProvisioned , volume .AnnBoundByController ),
706
704
expVolumeFinalizers : []string {customFinalizer , volume .PVDeletionInTreeProtectionFinalizer },
707
705
expModified : true ,
708
- migratedDriverGates : []featuregate.Feature {features . CSIMigration },
706
+ migratedDriverGates : []featuregate.Feature {},
709
707
},
710
708
{
711
709
// corner error case.
0 commit comments