code: func parseThresholdStatement(signal evictionapi.Signal, val string) (*evictionapi.Threshold, error) {
  	if !validSignal(signal) {
  		return nil, fmt.Errorf(unsupportedEvictionSignal, signal)
  	}
  	operator := evictionapi.OpForSignal[signal]
  	if strings.HasSuffix(val, "%") {
  		// ignore 0% and 100%
  		if val == "0%" || val == "100%" {
  			return nil, nil
  		}
  		percentage, err := parsePercentage(val)
  		if err != nil {
  			return nil, err
  		}
  		if percentage < 0 {
  			return nil, fmt.Errorf("eviction percentage threshold %v must be >= 0%%: %s", signal, val)
  		}
  		if percentage > 100 {
  			return nil, fmt.Errorf("eviction percentage threshold %v must be <= 100%%: %s", signal, val)
  		}
  		return &evictionapi.Threshold{
  			Signal:   signal,
  			Operator: operator,
  			Value: evictionapi.ThresholdValue{
  				Percentage: percentage,
  			},
  		}, nil
  	}
  	quantity, err := resource.ParseQuantity(val)
  	if err != nil {
  		return nil, err
  	}
  	if quantity.Sign() < 0 || quantity.IsZero() {
  		return nil, fmt.Errorf("eviction threshold %v must be positive: %s", signal, &quantity)
  	}
  	return &evictionapi.Threshold{
  		Signal:   signal,
  		Operator: operator,
  		Value: evictionapi.ThresholdValue{
  			Quantity: &quantity,
  		},
  	}, nil
  }
docs: // parseThresholdStatement parses a threshold statement and returns a threshold,
  // or nil if the threshold should be ignored.