Relax validation for CSIVolumeFSGroupPolicy

This commit is contained in:
Christian Huffman
2020-10-20 16:09:44 -04:00
parent 6d5cb36d36
commit 6b9348e878
3 changed files with 7 additions and 4 deletions

View File

@@ -113,8 +113,7 @@ func (csiDriverStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.
func (csiDriverStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
newCSIDriverObj := obj.(*storage.CSIDriver)
oldCSIDriverObj := old.(*storage.CSIDriver)
errorList := validation.ValidateCSIDriver(newCSIDriverObj)
return append(errorList, validation.ValidateCSIDriverUpdate(newCSIDriverObj, oldCSIDriverObj)...)
return validation.ValidateCSIDriverUpdate(newCSIDriverObj, oldCSIDriverObj)
}
func (csiDriverStrategy) AllowUnconditionalUpdate() bool {