feature: attempt to import images from the host - #501
Conversation
Signed-off-by: Caleb Boylan <calebboylan@gmail.com>
|
Hmmm I wonder if we should use kind load or let another cache program do this for us. @punkwalker What do you think? |
As mentioned by Cale, |
@squidboylan I feel we should use kind for this use-case. We don't want to implement logic which can be handled by kind. I usually use a script to load the images I need when idpbuilder creates cluster. |
@punkwalker I think there might be some confusion. In this PR I am using kind for this, however I'm not using the CLI as a user doesn't necessarily have it installed, instead I'm using the kind go package which we already depend on and I use it in a way that simulates running the kind cli how you show in your example. |
Yeah, I was referring to kind CLI. |
This is an attempt to address #402 . Throwing this up here to get thoughts on this approach, there's still more work to do including supporting package customization and tests. I considered using https://github.com/kubernetes-sigs/kind/blob/10e058c534cf6b8546be70f1eea2e414a08ff770/pkg/cluster/nodeutils/util.go#L80 like described in the issue but that seems to require a lot more code that is already implemented in kind, and this was the easiest way i could think of reusing that kind code. I admit calling the kind cobra command directly feels like a bit of a hack but at least it's likely to be stable? This also doesnt get us all the way to fixing #415 because it doesnt support images referenced by digest because of kubernetes-sigs/kind#2394 .