mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 12:41:58 +00:00
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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user