mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-29 21:29:24 +00:00
Merge pull request #6857 from wojtek-t/fix_scheduler_nodes
Fix listing nodes in scheduler
This commit is contained in:
@@ -1579,6 +1579,8 @@ func init() {
|
||||
switch label {
|
||||
case "name":
|
||||
return "metadata.name", value, nil
|
||||
case "unschedulable":
|
||||
return "spec.unschedulable", value, nil
|
||||
default:
|
||||
return "", "", fmt.Errorf("field label not supported: %s", label)
|
||||
}
|
||||
|
||||
@@ -1504,6 +1504,8 @@ func init() {
|
||||
switch label {
|
||||
case "name":
|
||||
return "metadata.name", value, nil
|
||||
case "unschedulable":
|
||||
return "spec.unschedulable", value, nil
|
||||
default:
|
||||
return "", "", fmt.Errorf("field label not supported: %s", label)
|
||||
}
|
||||
|
||||
@@ -44,6 +44,8 @@ func init() {
|
||||
switch label {
|
||||
case "metadata.name":
|
||||
return label, value, nil
|
||||
case "spec.unschedulable":
|
||||
return label, value, nil
|
||||
default:
|
||||
return "", "", fmt.Errorf("field label not supported: %s", label)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user