Controller don't stop running watches on cluster resync (#1298)

This commit is contained in:
Alexander Matyushentsev 2019-03-19 13:25:01 -07:00 committed by GitHub
parent 8f7a7ef6a4
commit 80fe3e1877
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)