Commit cab19c1
committed
fix(commands): capture upgrade target image BEFORE original RunE
talosctl's upgrade handler can overwrite the --image flag with the
node's currently-running install.image during the no-op-upgrade
path (when the target image already matches what's installed). If
Phase 2C reads the flag after RunE, it sees the running image as
the target — silent pass even when the apply was a real upgrade.
Capture targetImage BEFORE original RunE runs. Phase 2C now
verifies against the operator's intended target, not whatever
state talosctl left in the flag.
Verified on dev17: cross-vendor upgrade with target image
correctly set in the node body (machine.install.image:
ghcr.io/siderolabs/installer:v1.13.0) now reaches Phase 2C with
target=v1.13.0 (not the running v1.12.6). On a successful boot the
gate silently passes (target == running); on a failed boot with
auto-rollback the gate would correctly block.
Refs: #172, #175
While here, fold the K1-pre test-plan entry that documents the
new gate's expected output on the cross-vendor mismatch path.
Signed-off-by: Aleksei Sviridkin <f@lex.la>1 parent d6314bb commit cab19c1
2 files changed
Lines changed: 40 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
557 | 586 | | |
558 | 587 | | |
559 | 588 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
154 | 161 | | |
155 | 162 | | |
156 | 163 | | |
| |||
170 | 177 | | |
171 | 178 | | |
172 | 179 | | |
173 | | - | |
174 | | - | |
| 180 | + | |
| 181 | + | |
175 | 182 | | |
176 | 183 | | |
177 | 184 | | |
178 | 185 | | |
179 | | - | |
180 | | - | |
| 186 | + | |
181 | 187 | | |
182 | 188 | | |
183 | 189 | | |
184 | | - | |
| 190 | + | |
185 | 191 | | |
186 | 192 | | |
187 | 193 | | |
| |||
0 commit comments