mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Pass new and old object to DropDisabledFields
This commit is contained in:
@@ -38,7 +38,7 @@ func TestDropAlphaProcMountType(t *testing.T) {
|
||||
defer utilfeaturetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.ProcMountType, true)()
|
||||
|
||||
// now test dropping the fields - should not be dropped
|
||||
DropDisabledFields(&psp.Spec)
|
||||
DropDisabledFields(&psp.Spec, nil)
|
||||
|
||||
// check to make sure AllowedProcMountTypes is still present
|
||||
// if featureset is set to true
|
||||
@@ -52,7 +52,7 @@ func TestDropAlphaProcMountType(t *testing.T) {
|
||||
defer utilfeaturetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.ProcMountType, false)()
|
||||
|
||||
// now test dropping the fields
|
||||
DropDisabledFields(&psp.Spec)
|
||||
DropDisabledFields(&psp.Spec, nil)
|
||||
|
||||
// check to make sure AllowedProcMountTypes is nil
|
||||
// if featureset is set to false
|
||||
|
||||
Reference in New Issue
Block a user