What is the problem you're trying to solve
This is a follow up action item of supporting Kubernete's Evented PLEG feature [1].
In the current implementation [2], if containerd cannot find the PodSandbox for a container upon sending container events to kubelet, it will ignore the event. This is done in this way because kubelet cannot handle nil PodSandboxStatus.
We need to update the code to make sure all events, including those with nil PodSandboxStatus, will be sent to kubelet, after kubelet can handle nil PodSandboxStatus, which is being addressed in [3].
[1] kubernetes/enhancements#3386
[2] #7073
[3] kubernetes/kubernetes#114351
Describe the solution you'd like
Wait for kubernetes/kubernetes#114351 to be merged and released in k8s, and then remove the logic to ignore container events with nil PodSandboxStatus.
Additional context
No response
What is the problem you're trying to solve
This is a follow up action item of supporting Kubernete's Evented PLEG feature [1].
In the current implementation [2], if containerd cannot find the PodSandbox for a container upon sending container events to kubelet, it will ignore the event. This is done in this way because kubelet cannot handle nil PodSandboxStatus.
We need to update the code to make sure all events, including those with nil PodSandboxStatus, will be sent to kubelet, after kubelet can handle nil PodSandboxStatus, which is being addressed in [3].
[1] kubernetes/enhancements#3386
[2] #7073
[3] kubernetes/kubernetes#114351
Describe the solution you'd like
Wait for kubernetes/kubernetes#114351 to be merged and released in k8s, and then remove the logic to ignore container events with nil PodSandboxStatus.
Additional context
No response