mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Plumb old pod spec into DropDisabledFields methods
This commit is contained in:
@@ -307,7 +307,7 @@ func TestDropAlphaVolumeDevices(t *testing.T) {
|
||||
defer utilfeaturetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.BlockVolume, true)()
|
||||
|
||||
// now test dropping the fields - should not be dropped
|
||||
DropDisabledFields(&testPod.Spec)
|
||||
DropDisabledFields(&testPod.Spec, nil)
|
||||
|
||||
// check to make sure VolumeDevices is still present
|
||||
// if featureset is set to true
|
||||
@@ -322,7 +322,7 @@ func TestDropAlphaVolumeDevices(t *testing.T) {
|
||||
defer utilfeaturetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.BlockVolume, false)()
|
||||
|
||||
// now test dropping the fields
|
||||
DropDisabledFields(&testPod.Spec)
|
||||
DropDisabledFields(&testPod.Spec, nil)
|
||||
|
||||
// check to make sure VolumeDevices is nil
|
||||
// if featureset is set to false
|
||||
|
||||
Reference in New Issue
Block a user