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

Add option to split joined Quadlet options #118

Open
cgzones opened this issue Oct 3, 2024 · 1 comment
Open

Add option to split joined Quadlet options #118

cgzones opened this issue Oct 3, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@cgzones
Copy link

cgzones commented Oct 3, 2024

In my opinion when using more than a handful environment variables splitting them into individual Environment= directives is more readable/maintainable.
Please consider adding such an option or make it the default.

@k9withabone k9withabone changed the title Add option to split Environment= Add option to split joined Quadlet options Oct 23, 2024
@k9withabone k9withabone added the enhancement New feature or request label Oct 23, 2024
@k9withabone k9withabone added this to the v0.3.1 milestone Oct 23, 2024
@k9withabone
Copy link
Member

I've been thinking about how I would like to implement this, and I've settled on adding a podlet --split-option option which takes a list of Quadlet options that are normally joined together by Podlet (such as Environment) and split them up instead. Internally, an inverse of the list (i.e., the set of all joinable Quadlet options minus the given list) will be passed to the serializer (podlet::serde::quadlet::Serializer) as which Quadlet options to join together.

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

When branches are created from issues, their pull requests are automatically linked.

2 participants