mirror of
https://github.com/docker/compose.git
synced 2026-09-30 11:54:52 +00:00
Two edge regressions from the switch to a label-scoped observed state, both reported against the old ensureVolume path: - A same-named volume created manually or by another project (no compose label) was invisible to the observed state, so a VolumeCreate was planned on every up: a hard failure if the driver differed, spurious Creating/Created events otherwise. collectObservedState now discovers such volumes by name (pre-label Compose semantics) and records them as unmanaged matches with an empty config-hash, so the reconciler reuses them untouched. The ownership warnings move to warnUnmanagedVolumes, driven off the observed state; checkVolumes shrinks to external-only validation (checkExternalVolumes). - Renaming a volume hit the diverged path and, with up -y, deleted the old volume and its data (VolumeHash includes Name), where it previously just created the new one. When observed.Name != desired.Name the volume is now created additively, leaving the old one untouched, with no prompt. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com> |
||
|---|---|---|
| .. | ||
| api | ||
| bridge | ||
| compose | ||
| dryrun | ||
| e2e | ||
| mocks | ||
| remote | ||
| utils | ||
| watch | ||