mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-01 09:18:45 +00:00
Fix typo in EnableInf*l*ightQuotaHandler flag
This commit is contained in:
@@ -51,9 +51,9 @@ type ServerRunOptions struct {
|
|||||||
// decoded in a write request. 0 means no limit.
|
// decoded in a write request. 0 means no limit.
|
||||||
// We intentionally did not add a flag for this option. Users of the
|
// We intentionally did not add a flag for this option. Users of the
|
||||||
// apiserver library can wire it to a flag.
|
// apiserver library can wire it to a flag.
|
||||||
MaxRequestBodyBytes int64
|
MaxRequestBodyBytes int64
|
||||||
TargetRAMMB int
|
TargetRAMMB int
|
||||||
EnableInfightQuotaHandler bool
|
EnableInflightQuotaHandler bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewServerRunOptions() *ServerRunOptions {
|
func NewServerRunOptions() *ServerRunOptions {
|
||||||
@@ -116,7 +116,7 @@ func (s *ServerRunOptions) Validate() []error {
|
|||||||
errors = append(errors, fmt.Errorf("--maximum-startup-sequence-duration can not be a negative value"))
|
errors = append(errors, fmt.Errorf("--maximum-startup-sequence-duration can not be a negative value"))
|
||||||
}
|
}
|
||||||
|
|
||||||
if s.EnableInfightQuotaHandler {
|
if s.EnableInflightQuotaHandler {
|
||||||
if !utilfeature.DefaultFeatureGate.Enabled(features.RequestManagement) {
|
if !utilfeature.DefaultFeatureGate.Enabled(features.RequestManagement) {
|
||||||
errors = append(errors, fmt.Errorf("--enable-inflight-quota-handler can not be set if feature "+
|
errors = append(errors, fmt.Errorf("--enable-inflight-quota-handler can not be set if feature "+
|
||||||
"gate RequestManagement is disabled"))
|
"gate RequestManagement is disabled"))
|
||||||
@@ -210,7 +210,7 @@ func (s *ServerRunOptions) AddUniversalFlags(fs *pflag.FlagSet) {
|
|||||||
"handler, which picks a randomized value above this number as the connection timeout, "+
|
"handler, which picks a randomized value above this number as the connection timeout, "+
|
||||||
"to spread out load.")
|
"to spread out load.")
|
||||||
|
|
||||||
fs.BoolVar(&s.EnableInfightQuotaHandler, "enable-inflight-quota-handler", s.EnableInfightQuotaHandler, ""+
|
fs.BoolVar(&s.EnableInflightQuotaHandler, "enable-inflight-quota-handler", s.EnableInflightQuotaHandler, ""+
|
||||||
"If true, replace the max-in-flight handler with an enhanced one that queues and dispatches with priority and fairness")
|
"If true, replace the max-in-flight handler with an enhanced one that queues and dispatches with priority and fairness")
|
||||||
|
|
||||||
fs.DurationVar(&s.ShutdownDelayDuration, "shutdown-delay-duration", s.ShutdownDelayDuration, ""+
|
fs.DurationVar(&s.ShutdownDelayDuration, "shutdown-delay-duration", s.ShutdownDelayDuration, ""+
|
||||||
|
Reference in New Issue
Block a user