diff --git a/pkg/descheduler/pod/pods.go b/pkg/descheduler/pod/pods.go index 01e1cf916..04b154310 100644 --- a/pkg/descheduler/pod/pods.go +++ b/pkg/descheduler/pod/pods.go @@ -108,7 +108,7 @@ func ListPodsOnANode( } // INFO(jchaloup): field selectors do not work properly with listers - // Once the descheduler switcheds to pod listers (through informers), + // Once the descheduler switches to pod listers (through informers), // We need to flip to client-side filtering. podList, err := client.CoreV1().Pods(v1.NamespaceAll).List(ctx, metav1.ListOptions{FieldSelector: fieldSelector.String()}) diff --git a/pkg/descheduler/strategies/lownodeutilization.go b/pkg/descheduler/strategies/lownodeutilization.go index 8e29ff972..4505112b7 100644 --- a/pkg/descheduler/strategies/lownodeutilization.go +++ b/pkg/descheduler/strategies/lownodeutilization.go @@ -219,7 +219,7 @@ func getNodeUsage( node: node, usage: nodeUtilization(node, pods), allPods: pods, - // A treshold is in percentages but in <0;100> interval. + // A threshold is in percentages but in <0;100> interval. // Performing `threshold * 0.01` will convert <0;100> interval into <0;1>. // Multiplying it with capacity will give fraction of the capacity corresponding to the given high/low resource threshold in Quantity units. lowResourceThreshold: map[v1.ResourceName]*resource.Quantity{