Skip to content

Commit

Permalink
Update: fix clusterClientCache set kubeconfigPath
Browse files Browse the repository at this point in the history
  • Loading branch information
ifooth committed Nov 14, 2023
1 parent bc1350e commit 1b76a94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ func (o *operator) generateNativeClient(clusterID, kubeconfigPath string) (*clus
timeoutTime: time.Now().Local().Add(1 * time.Minute),
}
o.cacheLock.Lock()
o.clusterClientCache[kubeconfigPath] = cs
o.clusterClientCache[clusterID] = cs
o.cacheLock.Unlock()

blog.Infof("k8s-operator: get client set, create new native client set for cluster(%s), config host: %s", clusterID, c.Host)
Expand Down

0 comments on commit 1b76a94

Please sign in to comment.