code: func ValidateResourceQuota(resourceQuota *core.ResourceQuota) field.ErrorList {
  	allErrs := ValidateObjectMeta(&resourceQuota.ObjectMeta, true, ValidateResourceQuotaName, field.NewPath("metadata"))
  
  	allErrs = append(allErrs, ValidateResourceQuotaSpec(&resourceQuota.Spec, field.NewPath("spec"))...)
  	allErrs = append(allErrs, ValidateResourceQuotaStatus(&resourceQuota.Status, field.NewPath("status"))...)
  
  	return allErrs
  }
docs: // ValidateResourceQuota tests if required fields in the ResourceQuota are set.