compose/pkg
ibrahim yapar 56ab28aef3 compose: recreate container when mounted image digest changes
Until now, mustRecreate logic only checked for divergence in TypeVolume
mounts but ignored TypeImage mounts. This inconsistency caused containers
to erroneously retain stale images even after the source image was rebuilt.
This commit updates ensureImagesExists to resolve image volume sources to
their digests using the official reference package. This enables ServiceHash
(config hash) to naturally detect underlying image digest changes,
triggering recreation via the standard convergence logic.
An E2E test case is added to verify this behavior.
Fixes #13547

Signed-off-by: ibrahim yapar <74625807+ibrahimypr@users.noreply.github.com>
2026-01-26 15:55:44 +01:00
..
api add 'configured' event at the end of model configuration phase 2025-12-15 10:14:21 +01:00
bridge fix: clean up temporary compose files after conversion 2026-01-05 09:01:56 +01:00
compose compose: recreate container when mounted image digest changes 2026-01-26 15:55:44 +01:00
dryrun chore: fix grammatical errors and improve clarity in code 2025-12-08 11:20:48 +01:00
e2e compose: recreate container when mounted image digest changes 2026-01-26 15:55:44 +01:00
mocks next release will be major version v5.x 2025-11-13 09:32:43 +01:00
remote golangci-lint: use gci formatter instead of goimports 2025-12-01 12:21:50 +01:00
utils prefer use of slices.DeleteFunc 2025-05-27 15:16:50 +02:00
watch test: replace os.Setenv with t.Setenv() 2026-01-20 11:34:11 +01:00