Commit 5fc70f4
fix(pullImage): force pull when platform is requested
Cubic flagged on PR #1856 that the `image inspect` cache-check inside
pullImage is platform-agnostic — a different-arch variant of the same
image name will satisfy it, so the requested platform silently
diverges from what's actually on disk.
Fix: short-circuit the cache check when `imagePlatform` is set and
always invoke the explicit pull (which then carries `--platform` to
docker). Pulls are idempotent: if the requested variant is already
local, `docker pull` returns "Image is up to date" quickly.
Tightens the integration test by dropping `pullPolicy: "always"` —
the new short-circuit is now the path under test.
Identified by cubic.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 68f7a62 commit 5fc70f4
2 files changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1265 | 1265 | | |
1266 | 1266 | | |
1267 | 1267 | | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
1268 | 1278 | | |
1269 | 1279 | | |
1270 | 1280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
143 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
0 commit comments