-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 user-defined dependencies to podman generate systemd #12887
Conversation
Thanks @esendjer |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: esendjer, rhatdan 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 |
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.
We also need to add e2e tests (see test/e2e/generate_systemd.go
). That will reveal that the new code only runs on the local client but not on the remote client. That means we have to extend the pkg/api
and pkg/bindings
with the new parameters.
Once the nits are addressed, could you squash the last three commits into one so we have one commit adding all the code and the tests etc.?
Hi @vrothberg |
7feb56e
to
feec305
Compare
one doc nit, the rest LGTM once the tests are hip |
51a329f
to
762885c
Compare
Hey folk! Examples
|
🎉 all tests passed |
LGTM |
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.
Please add the new api fields to the swagger documentation here: https://github.com/containers/podman/blob/main/pkg/api/server/register_generate.go#L11-L74
This commit includes: * Handlers for generate systemd unit with manually defined dependencies such as: Wants=, After= and Requires= * The new unit and e2e tests for checking generated systemd units for container and pod with custom dependencies * Documented descriptions for custom dependencies options Signed-off-by: Eugene (Evgenii) Shubin <[email protected]>
/lgtm |
/hold cancel |
What does this PR do?
Add the new features - user-defined dependencies (
--wants
,--after
,--requires
) ingenerate systemd
This PR includes three commits:
generate systemd
with custom dependenciesgenerate systemd
with custom dependenciessystemd generate
UPD
Added one commit with a fix -
Removed unnecessary trailing newline (whitespace)
Motivation
The issue #12809
Additional Notes
None