mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 14:45:28 +00:00
Fix listing nodes in scheduler
This commit is contained in:
@@ -107,7 +107,8 @@ type ResourceGetter interface {
|
||||
// NodeToSelectableFields returns a label set that represents the object.
|
||||
func NodeToSelectableFields(node *api.Node) fields.Set {
|
||||
return fields.Set{
|
||||
"metadata.name": node.Name,
|
||||
"metadata.name": node.Name,
|
||||
"spec.unschedulable": fmt.Sprint(node.Spec.Unschedulable),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user