Skip to content

Commit

Permalink
k8s缓存功能
Browse files Browse the repository at this point in the history
  • Loading branch information
lbemi committed Jul 28, 2024
1 parent 707d321 commit 72f6ead
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/controller/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,8 @@ func (c *cluster) syncClusterCache(ctx context.Context, name string, enable bool

if !enable && cs.SyncCache {
close(cs.StopChan)
// 关闭后,设置缓存状态为 false
cs.SyncCache = false
}

return nil
Expand Down

0 comments on commit 72f6ead

Please sign in to comment.