mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #96722 from adtac/apfvalidation
APF: make command-line args validation error more descriptive
This commit is contained in:
commit
1f5c1b6d91
@ -139,7 +139,7 @@ func validateAPIPriorityAndFairness(options *ServerRunOptions) []error {
|
||||
testConfigs := []string{"flowcontrol.apiserver.k8s.io/v1beta1", "api/beta", "api/all"} // in the order of precedence
|
||||
for _, testConfig := range testConfigs {
|
||||
if strings.Contains(enabledAPIString, fmt.Sprintf("%s=false", testConfig)) {
|
||||
return []error{fmt.Errorf("%s=false conflicts with APIPriorityAndFairness feature gate", testConfig)}
|
||||
return []error{fmt.Errorf("--runtime-config=%s=false conflicts with --enable-priority-and-fairness=true and --feature-gates=APIPriorityAndFairness=true", testConfig)}
|
||||
}
|
||||
if strings.Contains(enabledAPIString, fmt.Sprintf("%s=true", testConfig)) {
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user