code: func (endpointsStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
  	allErrs := validation.ValidateEndpoints(obj.(*api.Endpoints))
  	allErrs = append(allErrs, validation.ValidateConditionalEndpoints(obj.(*api.Endpoints), nil)...)
  	return allErrs
  }
docs: // Validate validates a new endpoints.