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. Kubernetes-commit: 76d090e30f917888c5882228f7261ed31a34a2ab
This commit is contained in:
		
							parent
							
								
									2d4fff0118
								
							
						
					
					
						commit
						b017e16e12
					
				| 
						 | 
				
			
			@ -133,7 +133,7 @@ const (
 | 
			
		|||
	//
 | 
			
		||||
	//
 | 
			
		||||
	// Enables managing request concurrency with prioritization and fairness at each server
 | 
			
		||||
	RequestManagement featuregate.Feature = "RequestManagement"
 | 
			
		||||
	APIPriorityAndFairness featuregate.Feature = "APIPriorityAndFairness"
 | 
			
		||||
 | 
			
		||||
	// owner: @wojtek-t
 | 
			
		||||
	// alpha: v1.16
 | 
			
		||||
| 
						 | 
				
			
			@ -163,6 +163,6 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
 | 
			
		|||
	WinOverlay:              {Default: false, PreRelease: featuregate.Alpha},
 | 
			
		||||
	WinDSR:                  {Default: false, PreRelease: featuregate.Alpha},
 | 
			
		||||
	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},
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -117,9 +117,9 @@ func (s *ServerRunOptions) Validate() []error {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	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 "+
 | 
			
		||||
				"gate RequestManagement is disabled"))
 | 
			
		||||
				"gate APIPriorityAndFairness is disabled"))
 | 
			
		||||
		}
 | 
			
		||||
		if s.MaxMutatingRequestsInFlight != 0 {
 | 
			
		||||
			errors = append(errors, fmt.Errorf("--max-mutating-requests-inflight=%v "+
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue