Skip to content

Commit

Permalink
Controller don't stop running watches on cluster resync (argoproj#1298)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmt authored Mar 19, 2019
1 parent 8f7a7ef commit 80fe3e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controller/cache/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 80fe3e1

Please sign in to comment.