Commit 7bdde96
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 c1158de commit 7bdde96
3 files changed
Lines changed: 39 additions & 19 deletions
File tree
- controllers
- extensions/controllers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
477 | 481 | | |
478 | 482 | | |
479 | 483 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
469 | 476 | | |
470 | 477 | | |
471 | 478 | | |
| |||
0 commit comments