code: func ValidateLease(lease *coordination.Lease) field.ErrorList {
  	allErrs := validation.ValidateObjectMeta(&lease.ObjectMeta, true, validation.NameIsDNSSubdomain, field.NewPath("metadata"))
  	allErrs = append(allErrs, ValidateLeaseSpec(&lease.Spec, field.NewPath("spec"))...)
  	return allErrs
  }
docs: // ValidateLease validates a Lease.