1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-25 20:59:28 +01:00

Merge pull request #429 from invidian/invidian/fix-typo

pkg/descheduler/strategies: fix typo
This commit is contained in:
Kubernetes Prow Robot
2020-10-22 06:59:36 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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()})

View File

@@ -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{