mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
fixing issue of feature gate not being turned off properly
This commit is contained in:
parent
c98aabccb0
commit
74fcd97c84
@ -720,14 +720,9 @@ func TestSyncAlphaBlockVolume(t *testing.T) {
|
|||||||
t.Errorf("Failed to enable feature gate for BlockVolume: %v", err)
|
t.Errorf("Failed to enable feature gate for BlockVolume: %v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
defer utilfeature.DefaultFeatureGate.Set("BlockVolume=false")
|
||||||
|
|
||||||
runSyncTests(t, tests, []*storage.StorageClass{})
|
runSyncTests(t, tests, []*storage.StorageClass{})
|
||||||
|
|
||||||
err1 := utilfeature.DefaultFeatureGate.Set("BlockVolume=false")
|
|
||||||
if err1 != nil {
|
|
||||||
t.Errorf("Failed to disable feature gate for BlockVolume: %v", err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test multiple calls to syncClaim/syncVolume and periodic sync of all
|
// Test multiple calls to syncClaim/syncVolume and periodic sync of all
|
||||||
|
@ -839,6 +839,8 @@ func TestAlphaVolumeModeCheck(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// make sure feature gate is turned off
|
||||||
|
toggleBlockVolumeFeature(false, t)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAlphaFilteringVolumeModes(t *testing.T) {
|
func TestAlphaFilteringVolumeModes(t *testing.T) {
|
||||||
@ -933,6 +935,9 @@ func TestAlphaFilteringVolumeModes(t *testing.T) {
|
|||||||
t.Errorf("Unexpected failure for scenario: %s - %+v", name, err)
|
t.Errorf("Unexpected failure for scenario: %s - %+v", name, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// make sure feature gate is turned off
|
||||||
|
toggleBlockVolumeFeature(false, t)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestFindingPreboundVolumes(t *testing.T) {
|
func TestFindingPreboundVolumes(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user