File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,9 @@ import (
35
35
"k8s.io/apimachinery/pkg/types"
36
36
utilnet "k8s.io/apimachinery/pkg/util/net"
37
37
"k8s.io/apimachinery/pkg/util/validation/field"
38
- genericfeatures "k8s.io/apiserver/pkg/features"
39
38
"k8s.io/apiserver/pkg/registry/generic"
40
39
"k8s.io/apiserver/pkg/storage"
41
40
"k8s.io/apiserver/pkg/storage/names"
42
- utilfeature "k8s.io/apiserver/pkg/util/feature"
43
41
"k8s.io/client-go/tools/cache"
44
42
"k8s.io/kubernetes/pkg/api/legacyscheme"
45
43
podutil "k8s.io/kubernetes/pkg/api/pod"
@@ -293,12 +291,9 @@ func NodeNameIndexFunc(obj interface{}) ([]string, error) {
293
291
294
292
// Indexers returns the indexers for pod storage.
295
293
func Indexers () * cache.Indexers {
296
- if utilfeature .DefaultFeatureGate .Enabled (genericfeatures .SelectorIndex ) {
297
- return & cache.Indexers {
298
- storage .FieldIndex ("spec.nodeName" ): NodeNameIndexFunc ,
299
- }
294
+ return & cache.Indexers {
295
+ storage .FieldIndex ("spec.nodeName" ): NodeNameIndexFunc ,
300
296
}
301
- return nil
302
297
}
303
298
304
299
// ToSelectableFields returns a field set that represents the object
You can’t perform that action at this time.
0 commit comments