Merge pull request #117061 from AxeZhan/duplicate_validation

remove duplicate validation for csi
This commit is contained in:
Kubernetes Prow Robot 2023-05-14 12:51:26 -07:00 committed by GitHub
commit 11218f10aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,8 +53,6 @@ func (csiStorageCapacityStrategy) Validate(ctx context.Context, obj runtime.Obje
AllowInvalidLabelValueInSelector: false, AllowInvalidLabelValueInSelector: false,
} }
errs := validation.ValidateCSIStorageCapacity(csiStorageCapacity, opts) errs := validation.ValidateCSIStorageCapacity(csiStorageCapacity, opts)
errs = append(errs, validation.ValidateCSIStorageCapacity(csiStorageCapacity, opts)...)
return errs return errs
} }