fix same point Pod (#131)

This commit is contained in:
sun
2018-04-21 01:27:41 +08:00
committed by Robbie Zhang
parent 38ed39448a
commit 821da1117a

View File

@@ -84,9 +84,10 @@ func (rm *ResourceManager) SetPods(pods *v1.PodList) {
if p.Status.Phase == v1.PodSucceeded {
continue
}
rm.pods[p.Name] = &p
tmp := p
rm.pods[p.Name] = &tmp
rm.incrementRefCounters(&p)
rm.incrementRefCounters(&tmp)
}
}