Skip to content

Commit

Permalink
Fix scheduler import, raise level of log message
Browse files Browse the repository at this point in the history
  • Loading branch information
jsravn committed Aug 24, 2021
1 parent c86b39a commit 15d07a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package nodegroupset

import (
klog "k8s.io/klog/v2"
schedulerframework "k8s.io/kubernetes/pkg/scheduler/framework/v1alpha1"
schedulerframework "k8s.io/kubernetes/pkg/scheduler/framework"
)

// CreateLabelNodeInfoComparator returns a comparator that checks for node group similarity using the given labels.
Expand All @@ -33,7 +33,7 @@ func areLabelsSame(n1, n2 *schedulerframework.NodeInfo, labels []string) bool {
val1 := n1.Node().ObjectMeta.Labels[label]
val2 := n2.Node().ObjectMeta.Labels[label]
if val1 != val2 {
klog.V(4).Infof("%s label did not match. %s: %s, %s: %s", label, n1.Node().Name, val1, n2.Node().Name, val2)
klog.V(8).Infof("%s label did not match. %s: %s, %s: %s", label, n1.Node().Name, val1, n2.Node().Name, val2)
return false
}
}
Expand Down

0 comments on commit 15d07a3

Please sign in to comment.