mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
Merge pull request #4923 from lavalamp/fix4
Allow reflector to do full resync periodically
This commit is contained in:
@@ -102,7 +102,12 @@ func NewMainKubelet(
|
||||
|
||||
serviceStore := cache.NewStore(cache.MetaNamespaceKeyFunc)
|
||||
if kubeClient != nil {
|
||||
cache.NewReflector(cache.NewListWatchFromClient(kubeClient, "services", api.NamespaceAll, labels.Everything()), &api.Service{}, serviceStore).Run()
|
||||
cache.NewReflector(
|
||||
cache.NewListWatchFromClient(kubeClient, "services", api.NamespaceAll, labels.Everything()),
|
||||
&api.Service{},
|
||||
serviceStore,
|
||||
0,
|
||||
).Run()
|
||||
}
|
||||
serviceLister := &cache.StoreToServiceLister{serviceStore}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user