mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Renamed FeatureGate RequestManagement to APIPriorityAndFairness
The old name is too broad, we wanted a name that is more specific to the actual feature. This is an alpha gate, and no release has yet associated any functionality with this gate.
This commit is contained in:
parent
85bc79d81f
commit
76d090e30f
@ -594,7 +594,7 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
|
|||||||
genericfeatures.APIListChunking: {Default: true, PreRelease: featuregate.Beta},
|
genericfeatures.APIListChunking: {Default: true, PreRelease: featuregate.Beta},
|
||||||
genericfeatures.DryRun: {Default: true, PreRelease: featuregate.Beta},
|
genericfeatures.DryRun: {Default: true, PreRelease: featuregate.Beta},
|
||||||
genericfeatures.ServerSideApply: {Default: true, PreRelease: featuregate.Beta},
|
genericfeatures.ServerSideApply: {Default: true, PreRelease: featuregate.Beta},
|
||||||
genericfeatures.RequestManagement: {Default: false, PreRelease: featuregate.Alpha},
|
genericfeatures.APIPriorityAndFairness: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
|
|
||||||
// inherited features from apiextensions-apiserver, relisted here to get a conflict if it is changed
|
// inherited features from apiextensions-apiserver, relisted here to get a conflict if it is changed
|
||||||
// unintentionally on either side:
|
// unintentionally on either side:
|
||||||
|
@ -133,7 +133,7 @@ const (
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
// Enables managing request concurrency with prioritization and fairness at each server
|
// Enables managing request concurrency with prioritization and fairness at each server
|
||||||
RequestManagement featuregate.Feature = "RequestManagement"
|
APIPriorityAndFairness featuregate.Feature = "APIPriorityAndFairness"
|
||||||
|
|
||||||
// owner: @wojtek-t
|
// owner: @wojtek-t
|
||||||
// alpha: v1.16
|
// alpha: v1.16
|
||||||
@ -163,6 +163,6 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
|
|||||||
WinOverlay: {Default: false, PreRelease: featuregate.Alpha},
|
WinOverlay: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
WinDSR: {Default: false, PreRelease: featuregate.Alpha},
|
WinDSR: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
WatchBookmark: {Default: true, PreRelease: featuregate.GA, LockToDefault: true},
|
WatchBookmark: {Default: true, PreRelease: featuregate.GA, LockToDefault: true},
|
||||||
RequestManagement: {Default: false, PreRelease: featuregate.Alpha},
|
APIPriorityAndFairness: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
RemoveSelfLink: {Default: false, PreRelease: featuregate.Alpha},
|
RemoveSelfLink: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
}
|
}
|
||||||
|
@ -117,9 +117,9 @@ func (s *ServerRunOptions) Validate() []error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if s.EnableInflightQuotaHandler {
|
if s.EnableInflightQuotaHandler {
|
||||||
if !utilfeature.DefaultFeatureGate.Enabled(features.RequestManagement) {
|
if !utilfeature.DefaultFeatureGate.Enabled(features.APIPriorityAndFairness) {
|
||||||
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 APIPriorityAndFairness is disabled"))
|
||||||
}
|
}
|
||||||
if s.MaxMutatingRequestsInFlight != 0 {
|
if s.MaxMutatingRequestsInFlight != 0 {
|
||||||
errors = append(errors, fmt.Errorf("--max-mutating-requests-inflight=%v "+
|
errors = append(errors, fmt.Errorf("--max-mutating-requests-inflight=%v "+
|
||||||
|
Loading…
Reference in New Issue
Block a user