diff --git a/pkg/registry/storage/csidriver/storage/storage_test.go b/pkg/registry/storage/csidriver/storage/storage_test.go index 2cc848f6dc6..ea0ae5636a2 100644 --- a/pkg/registry/storage/csidriver/storage/storage_test.go +++ b/pkg/registry/storage/csidriver/storage/storage_test.go @@ -101,6 +101,12 @@ func TestUpdate(t *testing.T) { test.TestUpdate( // valid validNewCSIDriver("foo"), + // updateFunc + func(obj runtime.Object) runtime.Object { + object := obj.(*storageapi.CSIDriver) + object.Labels = map[string]string{"a": "b"} + return object + }, //invalid update func(obj runtime.Object) runtime.Object { object := obj.(*storageapi.CSIDriver)