code: func ValidateVolumeAttachment(volumeAttachment *storage.VolumeAttachment) field.ErrorList {
  	allErrs := apivalidation.ValidateObjectMeta(&volumeAttachment.ObjectMeta, false, apivalidation.ValidateClassName, field.NewPath("metadata"))
  	allErrs = append(allErrs, validateVolumeAttachmentSpec(&volumeAttachment.Spec, field.NewPath("spec"))...)
  	allErrs = append(allErrs, validateVolumeAttachmentStatus(&volumeAttachment.Status, field.NewPath("status"))...)
  	return allErrs
  }
docs: // ValidateVolumeAttachment validates a VolumeAttachment. This function is common for v1 and v1beta1 objects,