mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
Delete useless code
This commit is contained in:
parent
06c9ad2c83
commit
14adb38018
@ -181,7 +181,6 @@ func (cc *clusterClientCache) delFromClusterSet(obj interface{}) {
|
|||||||
// addToClusterSet inserts the new cluster to clusterSet and creates a corresponding
|
// addToClusterSet inserts the new cluster to clusterSet and creates a corresponding
|
||||||
// restclient to map clusterKubeClientMap
|
// restclient to map clusterKubeClientMap
|
||||||
func (cc *clusterClientCache) addToClientMap(obj interface{}) {
|
func (cc *clusterClientCache) addToClientMap(obj interface{}) {
|
||||||
cluster := obj.(*v1beta1.Cluster)
|
|
||||||
cc.rwlock.Lock()
|
cc.rwlock.Lock()
|
||||||
defer cc.rwlock.Unlock()
|
defer cc.rwlock.Unlock()
|
||||||
cluster, ok := obj.(*v1beta1.Cluster)
|
cluster, ok := obj.(*v1beta1.Cluster)
|
||||||
|
Loading…
Reference in New Issue
Block a user