mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-22 06:59:03 +00:00
Fixes https://github.com/kubernetes/kubernetes/issues/120941 GetNewerThan() call isn't blocking until the pod status/cache is updated and returning the empty pod status. Hence, whenever the `SyncLoop ADD/UPDATE/RECONCILE` functions are called multiple times in a very less time interval, Kubelet calls multiple `CreateContainer` CRI api that results in the creation of duplicate containers within a given pod. The initially created conainer keeps `Running` and the later container keeps `Exiting` and hence resulting the pod in `CrashLoopBackOff` state forever Signed-off-by: Sai Ramesh Vanka <svanka@redhat.com>