Fixup kubelet handlePodInfo to be namespace aware

This commit is contained in:
derekwaynecarr
2014-10-17 12:09:01 -04:00
parent b01126322b
commit d590af2ce5
3 changed files with 10 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ func (s sortedPods) Swap(i, j int) {
s[i], s[j] = s[j], s[i]
}
func (s sortedPods) Less(i, j int) bool {
return s[i].ID < s[j].ID
return s[i].ID < s[j].ID && s[i].Namespace < s[j].Namespace
}
func CreateValidPod(name, namespace, source string) api.BoundPod {