Repository: kubernetes/kubernetes (language: go)

Issue:
APF: remove feature gate in 1.31
### What happened?

Priority and Fairness is going GA in 1.29, the feature has been marked stable and the feature gate `APIPriorityAndFairness` has been locked to default. See https://github.com/kubernetes/kubernetes/pull/121638 

In 1.31, we  need to remove the feature gate.


Discussion / hints:
/kind bug
/sig api-machinery
/cc @wojtek-t @MikeSpreitzer 
/assign
/triage accepted

Fix patch:
diff --git a/pkg/features/kube_features.go b/pkg/features/kube_features.go
index bd62530751570..f2ddf1115f992 100644
--- a/pkg/features/kube_features.go
+++ b/pkg/features/kube_features.go
@@ -1221,8 +1221,6 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
 
 	genericfeatures.APIListChunking: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.32
 
-	genericfeatures.APIPriorityAndFairness: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.31
-
 	genericfeatures.APIResponseCompression: {Default: true, PreRelease: featuregate.Beta},
 
 	genericfeatures.APIServerIdentity: {Default: true, PreRelease: featuregate.Beta},
diff --git a/staging/src/k8s.io/apiserver/pkg/features/kube_features.go b/staging/src/k8s.io/apiserver/pkg/features/kube_features.go
index 6298c5e3a6bb6..7fc31ba37d45b 100644
--- a/staging/src/k8s.io/apiserver/pkg/features/kube_features.go
+++ b/staging/src/k8s.io/apiserver/pkg/features/kube_features.go
@@ -69,16 +69,6 @@ const (
 	// all at once.
 	APIListChunking featuregate.Feature = "APIListChunking"
 
-	// owner: @MikeSpreitzer @yue9944882
-	// alpha: v1.18
-	// beta: v1.20
-	// stable: 1.29
-	//
-	// Enables managing request concurrency with prioritization and fairness at each server.
-	// The FeatureGate was introduced in release 1.15 but the feature
-	// was not really implemented before 1.18.
-	APIPriorityAndFairness featuregate.Feature = "APIPriorityAndFairness"
-
 	// owner: @ilackams
 	// alpha: v1.7
 	// beta: v1.16
@@ -362,8 +352,6 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
 
 	APIListChunking: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.32
 
-	APIPriorityAndFairness: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.31
-
 	APIResponseCompression: {Default: true, PreRelease: featuregate.Beta},
 
 	APIServerIdentity: {Default: true, PreRelease: featuregate.Beta},


Test patch: