Commit 9a033ff
fix: recover from warm pool pod deletion instead of permanent error loop
Cherry-picks two upstream fixes:
1. kubernetes-sigs#521 — When an adopted warm pool pod is
deleted (node failure, drain, eviction), the controller returned a hard
error because the agents.x-k8s.io/pod-name annotation pointed to a
non-existent pod. This left the Sandbox stuck in a permanent reconcile
error loop. Now the controller clears the stale annotation and falls
through to create a replacement pod (which remounts the existing PVC).
2. kubernetes-sigs#469 — During warm pool adoption, ensure
the pod-name annotation is correct before the sandbox can be observed
as Ready. Prevents stale annotations from being set in the first place.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9801457 commit 9a033ff
3 files changed
Lines changed: 39 additions & 19 deletions
File tree
- controllers
- extensions/controllers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
481 | | - | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
482 | 486 | | |
483 | 487 | | |
484 | 488 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1130 | 1130 | | |
1131 | 1131 | | |
1132 | 1132 | | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
1136 | 1142 | | |
1137 | | - | |
1138 | | - | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1139 | 1150 | | |
1140 | | - | |
| 1151 | + | |
1141 | 1152 | | |
| 1153 | + | |
1142 | 1154 | | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
1152 | 1159 | | |
1153 | 1160 | | |
1154 | 1161 | | |
1155 | 1162 | | |
1156 | | - | |
1157 | | - | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
1158 | 1167 | | |
1159 | 1168 | | |
1160 | 1169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
445 | 452 | | |
446 | 453 | | |
447 | 454 | | |
| |||
0 commit comments