Skip to content

feat: support image, host, device, and metadata service keys (platform, devices, annotations, extra_hosts, pull_policy)#25

Merged
lesnik512 merged 7 commits into
mainfrom
feat/image-host-device-metadata-service-keys
Jul 9, 2026
Merged

feat: support image, host, device, and metadata service keys (platform, devices, annotations, extra_hosts, pull_policy)#25
lesnik512 merged 7 commits into
mainfrom
feat/image-host-device-metadata-service-keys

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Third Bucket A bundle. Adds five more per-container service keys, each an invariant-preserving podman run flag.

  • platform -> --platform (scalar, verbatim).
  • devices -> repeated --device (list, verbatim).
  • annotations -> repeated --annotation (list or map). Introduces a _MAP_FLAGS table that folds the existing labels loop and annotations into one (behavior-preserving for labels).
  • extra_hosts -> per-service --add-host host:ip (list or map; IPv6 values keep their colons via join-not-split). Distinct from the global alias -> 127.0.0.1 entries.
  • pull_policy -> validated enum mapped to --pull (if_not_present -> missing; always/never/missing pass through), emitted literally. build and unknown values are rejected — compose2pod never builds.

Design and rationale (single home, not restated here): planning/changes/2026-07-09.06-image-host-device-metadata-service-keys.md. Behavior promoted into architecture/supported-subset.md in the same PR.

Tests: 184 passing at 100% line coverage; just lint-ci clean.

🤖 Generated with Claude Code

@lesnik512 lesnik512 merged commit 11997af into main Jul 9, 2026
6 checks passed
@lesnik512 lesnik512 deleted the feat/image-host-device-metadata-service-keys branch July 9, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant