GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(systemd): add resource plugin for systemd unit files by ScMofeoluwa · Pull Request #8970 · updatecli/updatecli Conversation
Contributor
Adds a systemd resource plugin for reading and updating options in systemd unit files using go-systemd. Defaults to Container/Image for Quadlet compat. Testgo test ./pkg/plugins/resources/systemd/Checklist
Refs #8951
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Adds a systemd resource plugin capable of reading, checking, and updating options in systemd unit files using go-systemd Refs updatecli#8951
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pull request overviewAdds a new Changes:
Reviewed changesCopilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments. Show a summary per file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
I tested the pullrequest with the following example, where /tmp/wg.container is the file mentioned in the issue. Another question that I am wondering in the case of the example shared in the linked issue. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Hmm, good point. I think a safer approach might be: update normally when there is only one match, but return an error when multiple matching options are found unless the user provides an explicit selector like |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
What do you think about this @olblak |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
sorry I missed the ball, to align the behavior with other plugins like the YAML one cfr documentindex in the yaml documentation |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@ScMofeoluwa Do you need some help to finalize this pullrequest? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, this got buried in my mail. Thanks for the clarification. I’ll update the resource to follow that behavior and push an update shortly. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@olblak updated this now. I also addressed copilot's review but I left the target write path using |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Also bring the following fixes * fix target result description * cleanup spec comment * fix default workingdir Signed-off-by: Olblak <[email protected]>
|
While doing some manual testing, I spotted a few issues that I fixed in my last commit. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I also forgot to specify in my comment, I removed the default value for section, and option as I think this plugin should be generic to any systemd configuration |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Tick the box to add this pull request to the merge queue (same as
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Thanks for the fixes. The explicit |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: Olblak <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Signed-off-by: Olblak <[email protected]>
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.