-
Notifications
You must be signed in to change notification settings - Fork 1.4k
✨ Use docker API instead of exec'ing docker cmds #4413
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
Conversation
Hi @stmcginnis. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
99f2657
to
9e934e2
Compare
81f924a
to
aa02f82
Compare
/test pull-cluster-api-test-main |
/retest Unable to reproduce failure locally. Will give it one go with CI. |
/retest |
@stmcginnis I put it in my list for review. Hopefully I get to it this week |
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.
@stmcginnis great work! Only a few nits from my side
Thx!! |
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 Sean!
/lgtm
/lgtm |
/approve |
This gets rid of calls out to the docker CLI with parsing of its output to perform docker management. Calls now use the docker SDK directly. This is the first step towards making the CAPD more testable and potentially able to use other CRIs. Ideally, long term, we will want to refactor the code to move all runtime interaction into one or more interfaces that would give us the option for swapping out implementations. We can also then set up better unit testing for all code paths to make sure the interacting code is correct, regardless of the implementation of the runtime interaction. Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Rebased on master due to conflict from f1a4299 |
/lgmt |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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.
/lgtm
What this PR does / why we need it:
This gets rid of calls out to the
docker
CLI with parsing of itsoutput to perform docker management. Calls now use the docker SDK
directly.
This is the first step towards making the CAPD more testable and
potentially able to use other CRIs. Ideally, long term, we will want to
refactor the code to move all runtime interaction into one or more
interfaces that would give us the option for swapping out implementations.
We can also then set up better unit testing for all code paths to make sure
the interacting code is correct, regardless of the implementation of the
runtime interaction.
Which issue(s) this PR fixes:
Related #4380