From e86c5dea96c2c34158bebf864d0e40c8bf4b2b44 Mon Sep 17 00:00:00 2001 From: songf0011 <401658554@qq.com> Date: Sun, 26 Dec 2021 00:00:46 +0800 Subject: [PATCH] fix: fix spell mistake: hostClusterNmae -> hostClusterName --- pkg/controller/cluster/cluster_controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/controller/cluster/cluster_controller.go b/pkg/controller/cluster/cluster_controller.go index 1931ca3d8..3323742a7 100644 --- a/pkg/controller/cluster/cluster_controller.go +++ b/pkg/controller/cluster/cluster_controller.go @@ -156,7 +156,7 @@ type clusterController struct { resyncPeriod time.Duration - hostClusterNmae string + hostClusterName string } func NewClusterController( @@ -185,7 +185,7 @@ func NewClusterController( workerLoopPeriod: time.Second, clusterMap: make(map[string]*clusterData), resyncPeriod: resyncPeriod, - hostClusterNmae: hostClusterName, + hostClusterName: hostClusterName, } c.clusterLister = clusterInformer.Lister() c.clusterHasSynced = clusterInformer.Informer().HasSynced @@ -321,7 +321,7 @@ func (c *clusterController) reconcileHostCluster() error { // no host cluster, create one if len(clusters) == 0 { hostCluster.Spec.Connection.KubeConfig = hostKubeConfig - hostCluster.Name = c.hostClusterNmae + hostCluster.Name = c.hostClusterName _, err = c.clusterClient.Create(context.TODO(), hostCluster, metav1.CreateOptions{}) return err } else if len(clusters) > 1 {