Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Podman v4.6.0 / Podlet v0.2.2 #37

Merged
merged 23 commits into from
Dec 15, 2023
Merged

Podman v4.6.0 / Podlet v0.2.2 #37

merged 23 commits into from
Dec 15, 2023

Conversation

k9withabone
Copy link
Member

Closes #28. Fixes #32, #31, #34, and #36.

  • Adds support for quadlet options introduced in podman v4.6.0, bumping the minimum supported podman version.
  • Fixes a number of bugs.
  • Refactor to remove manual Display impls for quadlet sections and podman args.
    • They are now serialized with serde and custom Serializers.

Additionally, in `cli::container::quadlet`, refactored
`impl From<QuadletOptions> for crate::quadlet::Container` a bit to use
`Option::map_or` and added `Notify::is_container()`.
Created a custom serde `Serializer` for serializing into command
arguments and added a `Serialize` derive to
`cli::container::podman::PodmanArgs`. This replaces the manaul `Display`
impl, improving readability and reducing chances for errors.
Bools are now serialized as `--flag` or `--flag=false`.
Made `quadlet::writeln_escape_spaces()` take a generic const parameter
for the separator used for joining the words.
Also added doc comments to quadlet fields with first sentence from the
quadlet documentation.
Fixes: #32

Also, in joined quadlet values, strings containing any whitespace are
now quoted, not just if it conains a space.
When the command in converted to the `Exec=` quadlet option, it is now
properly quoted. When converting to k8s, it is properly split into args.

Fixes: #36
@k9withabone k9withabone added this to the v0.2.2 milestone Dec 15, 2023
@k9withabone k9withabone merged commit b96922d into main Dec 15, 2023
9 checks passed
@k9withabone k9withabone deleted the podman-v4.6.0 branch December 15, 2023 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant