From 14db14f3195c50091279655e5b0cd4427b77d762 Mon Sep 17 00:00:00 2001 From: Fan Shang Xiang Date: Tue, 28 May 2024 05:52:38 +0000 Subject: [PATCH] chores: fix spelling errors --- pkg/nodemanager/nodemanager.go | 6 +++--- pkg/nodemanager/nodemanager_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/nodemanager/nodemanager.go b/pkg/nodemanager/nodemanager.go index 77c4bdbfb3..e0907d1e00 100644 --- a/pkg/nodemanager/nodemanager.go +++ b/pkg/nodemanager/nodemanager.go @@ -75,10 +75,10 @@ type labelReconcile struct { ensureSecondaryExists bool } -// betaToplogyLabels lists beta topology labels that are deprecated and will +// betaTopologyLabels lists beta topology labels that are deprecated and will // be removed in a future release. // For now we reconcile them optionally onto nodes. -var betaToplogyLabels = []labelReconcile{ +var betaTopologyLabels = []labelReconcile{ { // Reconcile the beta and the GA zone label using the GA label as // the source of truth @@ -163,7 +163,7 @@ func NewCloudNodeController( // Only reconcile the beta topology labels when the feature flag is enabled. if cnc.enableBetaTopologyLabels { - cnc.labelReconcileInfo = append(cnc.labelReconcileInfo, betaToplogyLabels...) + cnc.labelReconcileInfo = append(cnc.labelReconcileInfo, betaTopologyLabels...) } // Use shared informer to listen to add/update of nodes. Note that any nodes diff --git a/pkg/nodemanager/nodemanager_test.go b/pkg/nodemanager/nodemanager_test.go index 7da9220106..89562a41ca 100644 --- a/pkg/nodemanager/nodemanager_test.go +++ b/pkg/nodemanager/nodemanager_test.go @@ -847,7 +847,7 @@ func Test_reconcileNodeLabels(t *testing.T) { kubeClient: clientset, nodeInformer: factory.Core().V1().Nodes(), // Test using the beta topology labels. - labelReconcileInfo: betaToplogyLabels, + labelReconcileInfo: betaTopologyLabels, } // activate node informer