code: func AdmissionToValidateObjectUpdateFunc(admit admission.Interface, staticAttributes admission.Attributes, o admission.ObjectInterfaces) ValidateObjectUpdateFunc {
  	validatingAdmission, ok := admit.(admission.ValidationInterface)
  	if !ok {
  		return func(obj, old runtime.Object) error { return nil }
  	}
  	return func(obj, old runtime.Object) error {
  		finalAttributes := admission.NewAttributesRecord(
  			obj,
  			old,
  			staticAttributes.GetKind(),
  			staticAttributes.GetNamespace(),
  			staticAttributes.GetName(),
  			staticAttributes.GetResource(),
  			staticAttributes.GetSubresource(),
  			staticAttributes.GetOperation(),
  			staticAttributes.IsDryRun(),
  			staticAttributes.GetUserInfo(),
  		)
  		if !validatingAdmission.Handles(finalAttributes.GetOperation()) {
  			return nil
  		}
  		return validatingAdmission.Validate(finalAttributes, o)
  	}
  }
docs: // AdmissionToValidateObjectUpdateFunc converts validating admission to a rest validate object update func