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

Absolute host paths #55

Merged
merged 9 commits into from
Jan 27, 2024
Merged

Absolute host paths #55

merged 9 commits into from
Jan 27, 2024

Conversation

k9withabone
Copy link
Member

Closes #52.

The main thing this PR does is add the podlet --absolute-host-paths option which converts relative host paths (e.g. volume source) to absolute paths. Getting there required a fair amount of yak shaving in the form of fully parsing (and reassembling on output) various podman options. The biggest of which was the mount options for which I implemented another custom Serializer and Deserializer.

- Add custom (de)serializer for mount options.
- Simplify conversion of compose service volumes.
Also refactored compose service volume conversion.
- Add `HostPaths` trait.
- Move `cli::kube::File` to `quadlet::Kube::YamlFile`.
- Add `podlet --absolute-host-paths` option.
  - Resolve relative host paths (e.g. volume source) to absolute paths.
@k9withabone k9withabone added the enhancement New feature or request label Jan 22, 2024
@k9withabone k9withabone added this to the v0.2.4 milestone Jan 22, 2024
@k9withabone k9withabone linked an issue Jan 22, 2024 that may be closed by this pull request
@k9withabone
Copy link
Member Author

@rugk could you test this out and see if it meets your expectations?

@k9withabone
Copy link
Member Author

I'm going to merge this tomorrow unless there are any objections. That way I can work on getting a release out this weekend.

@rugk
Copy link
Contributor

rugk commented Jan 26, 2024

Awesome! Thanks in any case. Unfortunately don't have resources to test this now, but I assume it works great. 😃

@k9withabone k9withabone merged commit 31e9223 into main Jan 27, 2024
9 checks passed
@k9withabone k9withabone deleted the absolute-host-paths branch January 27, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to convert relative host paths into absolute paths
2 participants