Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for validateConcurrency (0.12 sec)

  1. pkg/config/validation/validation.go

    		}
    
    		errs := Validation{}
    
    		errs = AppendValidation(errs,
    			validateWorkloadSelector(spec.Selector),
    			validateConcurrency(spec.Concurrency.GetValue()),
    		)
    		return errs.Unwrap()
    	})
    
    func validateConcurrency(concurrency int32) (v Validation) {
    	if concurrency < 0 {
    		v = appendErrorf(v, "concurrency must be greater than or equal to 0")
    	}
    	return
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
Back to top