code: func ValidateLabels(labels map[string]string, fldPath *field.Path) field.ErrorList {
  	allErrs := field.ErrorList{}
  	for k, v := range labels {
  		allErrs = append(allErrs, ValidateLabelName(k, fldPath)...)
  		for _, msg := range validation.IsValidLabelValue(v) {
  			allErrs = append(allErrs, field.Invalid(fldPath, v, msg))
  		}
  	}
  	return allErrs
  }
docs: // ValidateLabels validates that a set of labels are correctly defined.