Skip to content

Commit

Permalink
Merge pull request #6307 from MartinForReal/master
Browse files Browse the repository at this point in the history
Chores: fix spelling errors
  • Loading branch information
k8s-ci-robot authored May 28, 2024
2 parents 2d685df + 14db14f commit 07ad69b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/nodemanager/nodemanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/nodemanager/nodemanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07ad69b

Please sign in to comment.