-
Notifications
You must be signed in to change notification settings - Fork 6
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 podman remote support #61
Conversation
I do see a weird behavior that seems podman related when running more complex workflows on a local VM such as serial-wait_for. The behavior is the same if I set the default podman connection to the
This doesn't seem reproduce when using an actual baremetal remote machine. |
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.
Thanks Ed for bringing this forward.
Before we merge this, I think the invocation of the Podman command needs to be further encapsulated (and I'll work up a PR for your branch for that).
Also, I think we should try to come up with a way to test this new code with something other than an empty value. (I'll ponder that, but please do as well.)
This comment was marked as outdated.
This comment was marked as outdated.
Podman cmd refactor
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.
This looks good, now, Ed (if I do say so myself 😉) -- the tests are all passing and your additions are nicely localized.
However, speaking of tests, is there some way that we can set up a context for the local host so that we can test the changes you've made here with an actual --connection
in the invocation?
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.
Ed, this looks great! Thanks again for doing this.
However, I think the test cleanup should be made more rigorous (I sent you a PR (ewchong#2) for your branch), there are some lint complaints, and I have another suggestion (along with a few nits).
Use cleanup handlers to tear down the temporary Podman API service. Pass the connection via a pointer to a string to make handling null values more graceful. Tweak some names and text. Pick lint.
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.
👍 Thanks, again, Ed.
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.
I find the specifier ConnectionName a little confusing, as it sounds more like an address to me, but other than that, looks good.
What you are referring to in Podman is called
The plugin itself doesn't do anything with the |
Thanks for clarifying. Unfortunately that requires pre-setup before the workflow is run, but that's okay. |
We should be able to build on this functionality to add the ability for the workflow to set the URI. It is pretty much always going to be the case that the Podman listener has to be setup independent of the workflow, so some pre-setup will generally be required in order to use this feature, and I think that's totally reasonable. However, I can see how it might be awkward to configure the Podman connection outside of the workflow (depending on where and how the workflow is being run), in which case it would be handy to be able to provide it via the workflow. (And, I don't think it would be hard.) |
Close #27
Changes introduced with this PR
--connection
By contributing to this repository, I agree to the contribution guidelines.