Commit fbfa300
fix(plugins/container): guard against nil RuntimeSpec in CNI fallback
containerd v2.3.0 (CRI API v0.36) does not populate the runtimeSpec
field in sandbox info JSON. This field is cri-o specific. When
CNIResult is also absent, the fallback branch dereferences a nil
pointer in cniSandboxInfo.RuntimeSpec.Annotations and the plugin
panics. All Falco DaemonSet pods on a containerd v2.3.0 node go into
CrashLoopBackOff.
Wrap the annotation lookup in a nil check, matching the existing
pattern used for info.RuntimeSpec at cri.go:92 and :126.
Closes #1353
Signed-off-by: Raajhesh Kannaa Chidambaram <495042+raajheshkannaa@users.noreply.github.com>1 parent 80ce456 commit fbfa300
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
| |||
0 commit comments