mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-23 01:08:33 +00:00
Controller don't stop running watches on cluster resync (#1298)
This commit is contained in:
parent
8f7a7ef6a4
commit
80fe3e1877
1 changed files with 3 additions and 0 deletions
3
controller/cache/cluster.go
vendored
3
controller/cache/cluster.go
vendored
|
|
@ -274,6 +274,9 @@ func (c *clusterInfo) sync() (err error) {
|
|||
|
||||
c.log.Info("Start syncing cluster")
|
||||
|
||||
for i := range c.apisMeta {
|
||||
c.apisMeta[i].watchCancel()
|
||||
}
|
||||
c.apisMeta = make(map[schema.GroupKind]*apiMeta)
|
||||
c.nodes = make(map[kube.ResourceKey]*node)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue