kubelet: Add container reference manager.

Move the reference managing logic into container reference manager.
This enables pluggable container runtime to manage the container references.
This commit is contained in:
Yifan Gu
2015-03-25 21:25:08 -07:00
parent dc0fdcc6f4
commit a06bc96414
6 changed files with 103 additions and 59 deletions

View File

@@ -65,7 +65,7 @@ func (kl *Kubelet) probeContainer(pod *api.Pod, status api.PodStatus, container
glog.V(1).Infof("Readiness probe failed/errored: %v, %v", ready, err)
kl.readiness.set(containerID, false)
ref, ok := kl.getRef(containerID)
ref, ok := kl.containerRefManager.GetRef(containerID)
if !ok {
glog.Warningf("No ref for pod '%v' - '%v'", containerID, container.Name)
} else {