0.1.2
compose2pod 0.1.2 — accept the service hostname key
A patch release that stops rejecting valid compose documents which set a
service hostname. The validator was over-strict: a service carrying
hostname: — used to give a service a stable name that other services connect
to — raised unsupported key 'hostname'. Such documents now convert.
Fix
- The service
hostnamekey is accepted.validate()no longer rejects a
service that setshostname:, and the hostname is made resolvable to
127.0.0.1inside the pod, exactly like a network alias: it joins the
--add-hostset so other services reach the service by that name. Because all
services share one network namespace (and the pod's UTS namespace), only name
resolution is meaningful — no per-container--hostnameis emitted.
Downstream
No action needed — additive and backward compatible. Documents that previously
failed with unsupported key 'hostname' now emit a pod script; nothing that
converted before changes.
Internals
architecture/supported-subset.mdaddshostnameto the supported
service-key matrix with the shared-namespace resolution rationale.- 86 tests at 100% line coverage (enforced);
ruff select=ALL,ty, and
eof-fixerclean.