Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions planning/releases/0.1.4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# compose2pod 0.1.4 — accept the service `container_name` key

A patch release that stops rejecting valid compose documents which set a
service `container_name`. The validator was over-strict: a service carrying
`container_name:` — used to give a service a stable name that other services
connect to — raised `unsupported key 'container_name'`. Such documents now
convert.

## Fix

- **The service `container_name` key is accepted.** `validate()` no longer
rejects a service that sets `container_name:`, and the name is made
resolvable to `127.0.0.1` inside the pod, exactly like `hostname` and network
aliases already are: it joins the `--add-host` set so other services reach it
by that name. The actual podman container keeps its internal
`{pod}-{service}` name (used for `podman cp`, healthcheck polling, and
diagnostics) — only name resolution is affected, matching the pod's
shared network namespace.

## Downstream

No action needed — additive and backward compatible. Documents that previously
failed with `unsupported key 'container_name'` now emit a pod script; nothing
that converted before changes.

## Internals

- `architecture/supported-subset.md` merges the `hostname`/`container_name`
note explaining both are shared-namespace-resolvable but never change the
real `--name`.
- 92 tests at 100% line coverage (enforced); `ruff select=ALL`, `ty`, and
`eof-fixer` clean.