Merge pull request #121906 from ahutsunshine/namespace-indexer

support namespace indexer for namespaced resources like pods
This commit is contained in:
Kubernetes Prow Robot
2023-12-13 23:55:46 +01:00
committed by GitHub
5 changed files with 124 additions and 5 deletions

View File

@@ -975,6 +975,12 @@ const (
// will not graduate or be enabled by default in future Kubernetes
// releases.
UserNamespacesPodSecurityStandards featuregate.Feature = "UserNamespacesPodSecurityStandards"
// owner: @ahutsunshine
// beta: v1.29
//
// Allows namespace indexer for namespace scope resources in apiserver cache to accelerate list operations.
StorageNamespaceIndex featuregate.Feature = "StorageNamespaceIndex"
)
func init() {
@@ -1283,4 +1289,6 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
// features that enable backwards compatibility but are scheduled to be removed
// ...
HPAScaleToZero: {Default: false, PreRelease: featuregate.Alpha},
StorageNamespaceIndex: {Default: true, PreRelease: featuregate.Beta},
}