mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
controller: use defaultResync for the deployment controller
This commit is contained in:
parent
d19a1109e2
commit
04c6fecbc7
@ -18,7 +18,6 @@ package informers
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"time"
|
||||
|
||||
"k8s.io/kubernetes/pkg/api/v1"
|
||||
extensions "k8s.io/kubernetes/pkg/apis/extensions/v1beta1"
|
||||
@ -99,9 +98,7 @@ func (f *deploymentInformer) Informer() cache.SharedIndexInformer {
|
||||
},
|
||||
},
|
||||
&extensions.Deployment{},
|
||||
// TODO remove this. It is hardcoded so that "Waiting for the second deployment to clear overlapping annotation" in
|
||||
// "overlapping deployment should not fight with each other" will work since it requires a full resync to work properly.
|
||||
30*time.Second,
|
||||
f.defaultResync,
|
||||
cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc},
|
||||
)
|
||||
f.informers[informerType] = informer
|
||||
|
Loading…
Reference in New Issue
Block a user