Allow other KinD providers to work#182
Conversation
When asking KinD for a provider, use the detection option instead of forcing it to the Docker provider. Signed-off-by: Phil Estes <estesp@gmail.com>
e4db664 to
39c9037
Compare
|
@nabuskey FYI - this would let us use finch as the kind provider, but our "RunsOnRightPort" hard depends on the docker CLI outside of our use of kind so it breaks on first run. |
You're correct that the Only if you try to run |
I don't think we should merge this then. When I am developing patterns and examples of using idpbuilder, I have to be able to run the create command multiple times against the same cluster. Being forced to re-create the cluster is a blocker for me. If |
|
nvm I misunderstood. These apply when you are using non-docker provider. So you are not affected if you use docker. We don't say we support non-docker providers anywhere yet so I think we are good. We should reconsider |
|
@estesp I am catching up here. Thanks for this PR! I am assuming there are mechanisms in Finch that would allow us to check whether the kind control plane container already serves idpBuilder on an existing port. correct? if so, we should be able to use @greghaynes PR @183 to fix this and include Finch as a fully supported runtime. |
|
Thanks @nimakaviani
Yes, generally, but there is no programmatic API for Finch (or nerdctl) as they are just client/command line tools, not API servers. So, even #183 still imports the Docker client API pkg and makes calls (via the container object(s)) that require a Docker HTTP API server, which will mean that nerdctl and finch will not work in that model. If If that's a bit too adventurous, another option is to "dumb down" |
When asking KinD for a provider, use the detection option instead of forcing it to the Docker provider.
This allows the new capability in KinD to use nerdctl or finch to work properly with idpbuilder.