-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Quadlet override service name #23449
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
Quadlet override service name #23449
Conversation
972e192 to
cd5616f
Compare
928964c to
22a2949
Compare
22a2949 to
5f9bc48
Compare
|
@Luap99 this is the PR that completes the support for overriding the generated service name. In addition to the code changes, it required some adjustments to the tests in addition to some new tests |
|
@ygalblum could you rebase and repush. |
5f9bc48 to
ac87f27
Compare
|
@rhatdan Done |
pkg/systemd/quadlet/quadlet.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One enhancement would be to add a function unitInfo.Filename() and clean this up.
service.Filename=unitInfo.Filename()
Since this is replicated everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
rhatdan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
One minor change.
ac87f27 to
dee40bb
Compare
Add support for the ServiceName key for all unit types Extend the PodInfo struct into UnitInfo to consolidate all prepopulated data into a single map Use the NodesInfo map instead of the resourceName Update the UnitInfo in the convert function instead of returning it No need to replace extension anymore just remove it All e2e tests with dependencies on other Quadlet files moved to a separate section Add the capability of overriding the service name in the test Add e2e tests for the new functionality Adjust integration tests Update the MAN page Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
dee40bb to
795851e
Compare
|
@containers/podman-maintainers PTAL |
Luap99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99, rhatdan, ygalblum The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Does this PR introduce a user-facing change?
Yes