Skip to content

Commit

Permalink
chores: fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinForReal authored and k8s-infra-cherrypick-robot committed May 28, 2024
1 parent 6792d47 commit e84baf7
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 e84baf7

Please sign in to comment.