Make scheduler to watch PodSpec.Host instead Status.Host

This commit is contained in:
Wojciech Tyczynski
2015-03-12 13:38:58 +01:00
parent a3fd0a9fd5
commit 9f2f10d6db
9 changed files with 12 additions and 13 deletions

View File

@@ -154,7 +154,7 @@ func (f *ConfigFactory) CreateFromKeys(predicateKeys, priorityKeys util.StringSe
Binder: &binder{f.Client},
NextPod: func() *api.Pod {
pod := f.PodQueue.Pop().(*api.Pod)
glog.V(2).Infof("glog.v2 --> About to try and schedule pod %v", pod.Name)
glog.V(2).Infof("About to try and schedule pod %v", pod.Name)
return pod
},
Error: f.makeDefaultErrorFunc(&podBackoff, f.PodQueue),
@@ -259,7 +259,7 @@ func getHostFieldLabel(apiVersion string) string {
case "v1beta1", "v1beta2":
return "DesiredState.Host"
default:
return "status.host"
return "spec.host"
}
}