Repository navigation
feat: lay foundations for engine drivers - #6288
Conversation
620ab18 to
29b566f
Compare
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
TomChv
left a comment
There was a problem hiding this comment.
Do we have any tests on our CI that tests these different drivers?
I like the new interface style registration tho, look pretty cool!
|
Do we want to continue this? |
29b566f to
78a48f6
Compare
|
Rebased 🎉 Did a self-review, I'm pretty happy with this, and to take this as-is.
Nope, we should though. We don't have anything here today, so I'm not too worried about adding anything additional right now, especially now that I can confirm that this works without too many issues at the moment.
Part of the idea is that because each driver only needs to return a |
|
|
|
The |
This patch starts to simplify the connhelpers and docker-image helper into specific engine drivers. Each driver registers itself under a name, and is called when connecting to a URL with that scheme. Additionally, during connection, we provide a set of additional parameters. This is mostly just a refactor around the connhelpers, which we can't use directly out of the box, since we want to support a set of additional parameters as well. Since each driver just returns a net.Conn, then we can build the buildkit connection on top of it, which allow us to potentially change the connection mechanism in the future. Signed-off-by: Justin Chadwell <[email protected]>
78a48f6 to
7e69226
Compare
|
Let's take this now - if it breaks things, would rather do it now, instead of waiting for the big zenith release 😄 Also, this has become a lot more relevant as we've been discussing #5583 |
|
Oops this definitely broke Sorry y'all, working on it now. |
This patch starts to simplify the connhelpers and docker-image helper into specific engine drivers (see #5583) - adding new drivers now becomes easier.
Each driver registers itself under a name, and is called when connecting to a URL with that scheme. Additionally, during connection, we provide a set of additional parameters.
This is mostly just a refactor around the connhelpers, which we can't use directly out of the box, since we want to support a set of additional parameters as well. Since each driver just returns a net.Conn, then we can build the buildkit connection on top of it, which allow us to potentially change the connection mechanism in the future.