Commit 313ddf0
committed
Prevent accidental IP deallocation in statefulsets
This commit addresses a potential issue where IP allocations
could be accidentally deleted when new pods with the same name
and namespace are created in statefulset scenarios. The logic
now correctly checks if a pod with the matching name and namespace
exists and is not marked for deletion. If such a pod exists,
the deallocation is skipped, preventing conflicts. The commit
also includes clarified logging messages for improved debugging.
Signed-off-by: Marcelo <[email protected]>1 parent 9400392 commit 313ddf0
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
225 | 241 | | |
226 | 242 | | |
227 | 243 | | |
| |||
0 commit comments