diff --git a/webhook/resources/volume/validator.go b/webhook/resources/volume/validator.go index 9078df91cd..fbf3241a70 100644 --- a/webhook/resources/volume/validator.go +++ b/webhook/resources/volume/validator.go @@ -153,6 +153,9 @@ func (v *volumeValidator) Create(request *admission.Request, newObj runtime.Obje if volume.Spec.BackingImage != "" { return werror.NewInvalidError("backing image is not supported for data engine v2", "") } + if types.IsDataFromVolume(volume.Spec.DataSource) { + return werror.NewInvalidError("clone is not supported for data engine v2", "") + } } return nil