Merge pull request #37613 from wojtek-t/limitranger_index

Automatic merge from submit-queue

Add namespace index for limit ranger

Without this PR I'm seeing a huge number of lines like this:
```
Index with name namespace does not exist
```

Those are coming from LimitRanger admission controller - this PR fixes those.
This commit is contained in:
Kubernetes Submit Queue 2016-12-01 04:52:04 -08:00 committed by GitHub
commit 2c0e59b974

View File

@ -467,7 +467,7 @@ func NewInternalLimitRangeInformer(internalclient internalclientset.Interface, r
},
&api.LimitRange{},
resyncPeriod,
cache.Indexers{})
cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc})
return sharedIndexInformer
}