add index for pod cacher

Signed-off-by: shaloulcy <lcy041536@gmail.com>

Kubernetes-commit: fe312ed74afea539cf54ed993d79257df08ae1f1
This commit is contained in:
shaloulcy 2020-02-08 10:13:20 +08:00 committed by Kubernetes Publisher
parent 96a1d817be
commit 1b0da4e553
1 changed files with 7 additions and 0 deletions

View File

@ -140,6 +140,12 @@ const (
//
// Deprecates and removes SelfLink from ObjectMeta and ListMeta.
RemoveSelfLink featuregate.Feature = "RemoveSelfLink"
// owner: @shaloulcy
// alpha: v1.18
//
// Allows label and field based indexes in apiserver watch cache to accelerate list operations.
SelectorIndex featuregate.Feature = "SelectorIndex"
)
func init() {
@ -165,4 +171,5 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
WatchBookmark: {Default: true, PreRelease: featuregate.GA, LockToDefault: true},
APIPriorityAndFairness: {Default: false, PreRelease: featuregate.Alpha},
RemoveSelfLink: {Default: false, PreRelease: featuregate.Alpha},
SelectorIndex: {Default: false, PreRelease: featuregate.Alpha},
}