mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Make scheduler to watch PodSpec.Host instead Status.Host
This commit is contained in:
@@ -1384,7 +1384,7 @@ func init() {
|
||||
case "name":
|
||||
return "name", value, nil
|
||||
case "DesiredState.Host":
|
||||
return "status.host", value, nil
|
||||
return "spec.host", value, nil
|
||||
case "DesiredState.Status":
|
||||
podStatus := PodStatus(value)
|
||||
var internalValue newer.PodPhase
|
||||
|
||||
@@ -1300,7 +1300,7 @@ func init() {
|
||||
case "name":
|
||||
return "name", value, nil
|
||||
case "DesiredState.Host":
|
||||
return "status.host", value, nil
|
||||
return "spec.host", value, nil
|
||||
case "DesiredState.Status":
|
||||
podStatus := PodStatus(value)
|
||||
var internalValue newer.PodPhase
|
||||
|
||||
@@ -31,7 +31,7 @@ func init() {
|
||||
fallthrough
|
||||
case "status.phase":
|
||||
fallthrough
|
||||
case "status.host":
|
||||
case "spec.host":
|
||||
return label, value, nil
|
||||
default:
|
||||
return "", "", fmt.Errorf("field label not supported: %s", label)
|
||||
|
||||
Reference in New Issue
Block a user