Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for OpForSignal (0.1 sec)

  1. pkg/kubelet/eviction/api/types.go

    type ThresholdOperator string
    
    const (
    	// OpLessThan is the operator that expresses a less than operator.
    	OpLessThan ThresholdOperator = "LessThan"
    )
    
    // OpForSignal maps Signals to ThresholdOperators.
    // Today, the only supported operator is "LessThan". This may change in the future,
    // for example if "consumed" (as opposed to "available") type signals are added.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. pkg/kubelet/eviction/helpers.go

    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
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 53.6K bytes
    - Viewed (0)
Back to top