Option to customize Quadlet service names #23414
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
quadlet
Feature request description
I'm currently migrating from the "deprecated" systemd generation to Quadlets. It's been a bumpy road, mostly due to podlet not being fully baked and some generation errors that aren't surfaced unless you do a generator
-dryrun
.Currently, the generator creates most service names by replacing the Quadlet file extension with a suffix like
-image
or-pod
. In my case, for easy grep'ing and probably other forgotten reasons (my project has been using Podman since version 3), I end all my pod names with-pod
so all my Quadlet pod services end in-pod-pod
🙄For pods, the pod name itself can be set with the
PodName
option, which in turn eliminates the addition of asystemd-
prefix, but the service name cannot be influenced.Suggest potential solution
I would like to request that Quadlet generated service names be customizable, either based on
PodName
(for pods) or a new generic option such asServiceName
.Have you considered any alternatives?
The alternative would be to rename all my pods 😁 In the meantime, I'm getting used to:
Additional context
Coincidentally, I had a similar request related to prefix/suffix used by
generate systemd
back in 2022.The text was updated successfully, but these errors were encountered: