containers / podlet

Generate Podman Quadlet files from a Podman command, compose file, or existing object
https://crates.io/crates/podlet
Mozilla Public License 2.0
422 stars 12 forks source link

Migrate to `compose_spec` #73

Closed k9withabone closed 5 months ago

k9withabone commented 5 months ago

Changes the library used for deserializing a compose file from docker-compose-types to compose_spec. Most of the conversion logic was refactored/rewritten and hopefully readability and maintainability have improved in those areas. compose_spec is a lot stricter about what it accepts as a valid compose file. This is a breaking change as some compose files (those that don't comply with the spec) will no longer successfully deserialize and convert.

A new --binds-to option was added, which sets BindsTo= in the [Unit] section. It was needed for converting from long syntax depends_on when restart is true.

One other breaking change is that podlet compose --pod was renamed to podlet compose --kube and no longer takes an argument. Instead, podlet uses the top-level name field from the compose file for the name of pod. --pod will return with Podman v5.0.0 support (#68).

Closes #47 Closes #61 Closes #62 Closes #63 Closes #69