Commit ecfce50
fix(controller): prevent NPE in isOvnSubnet when subnet is nil
When an IP CR references a deleted subnet, handleUpdateIP calls
isOvnSubnet with a nil subnet pointer, causing a panic that puts
the controller into CrashLoopBackOff. Add a nil check so that
isOvnSubnet safely returns false for nil input.
Fixes #6309
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>1 parent be9489c commit ecfce50
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2372 | 2372 | | |
2373 | 2373 | | |
2374 | 2374 | | |
2375 | | - | |
| 2375 | + | |
2376 | 2376 | | |
2377 | 2377 | | |
2378 | 2378 | | |
| |||
0 commit comments