Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for validateAPIPriorityAndFairness (0.2 sec)

  1. pkg/controlplane/apiserver/options/validation.go

    		errs = append(errs, errors.New("--service-account-signing-key-file, --service-account-issuer, and --api-audiences should be specified together"))
    	}
    
    	return errs
    }
    
    func validateAPIPriorityAndFairness(options *Options) []error {
    	if options.Features.EnablePriorityAndFairness {
    		// If none of the following runtime config options are specified,
    		// APF is assumed to be turned on. The internal APF controller uses
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 12:46:24 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. pkg/controlplane/apiserver/options/validation_test.go

    				},
    				APIEnablement: genericoptions.NewAPIEnablementOptions(),
    			}
    			options.APIEnablement.RuntimeConfig.Set(test.runtimeConfig)
    
    			var errMessageGot string
    			if errs := validateAPIPriorityAndFairness(options); len(errs) > 0 {
    				errMessageGot = errs[0].Error()
    			}
    
    			switch {
    			case len(test.errShouldContain) == 0:
    				if len(errMessageGot) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top