code: func (v *KustValidator) MakeLabelValidator() func(map[string]string) error {
  	return func(x map[string]string) error {
  		errs := v1validation.ValidateLabels(x, field.NewPath("field"))
  		if len(errs) > 0 {
  			return errors.New(errs.ToAggregate().Error())
  		}
  		return nil
  	}
  }
docs: // MakeLabelValidator returns a MapValidatorFunc using apimachinery.