rename function for dropping disabled fields

The function should indicate it is specific for dropping spec fields.
This commit is contained in:
Roman Bednar
2023-03-10 14:03:41 +01:00
parent d6e525877b
commit a31fee98f0
3 changed files with 5 additions and 5 deletions

View File

@@ -91,7 +91,7 @@ func TestDropDisabledFields(t *testing.T) {
t.Run(name, func(t *testing.T) {
defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.CSINodeExpandSecret, tc.csiExpansionEnabled)()
DropDisabledFields(tc.newSpec, tc.oldSpec)
DropDisabledSpecFields(tc.newSpec, tc.oldSpec)
if !reflect.DeepEqual(tc.newSpec, tc.expectNewSpec) {
t.Error(cmp.Diff(tc.newSpec, tc.expectNewSpec))
}