devspace icon indicating copy to clipboard operation
devspace copied to clipboard

Support buildkit build without dependency on kubeconfig

Open markphillips100 opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? I am attempting to use devspace in my Azure Pipelines CI for image builds rather than the usual sequential pipeline task, one per image. Using devspace would allow me to take advantage of parallel builds and the pipelines for creating a single base image for all other images to use.

I'm having a similar problem to #1769 only the related merged PR doesn't solve it for me as I do use buildkit in order to use --secrets to support passing of a token to the docker build - necessary for the purpose of accessing a private package feed (in Azure).

So basically I need buildkit enabled and have no kubernetes cluster so no kubeconfig and no namespace.

Which solution do you suggest? Would it be possible to introduce a flag to prevent the devspace build or build_images in the pipeline needing the kubeconfig rather than relying on if buildkit is used or not?

Which alternative solutions exist? None for me. I need buildkit if I'm to use my yaml in CI for image builds.

Additional context

/kind feature

markphillips100 avatar May 03 '22 06:05 markphillips100

I should add that I'm focused (fixated) on the v6 alpha versions :-) due to the pipelines feature, so looking for something to hopefully help in v6.

markphillips100 avatar May 03 '22 06:05 markphillips100

@markphillips100 thanks for creating this issue! We'll see what we can do there, but generally this should be possible

FabianKramm avatar May 03 '22 08:05 FabianKramm

Thank you @FabianKramm . I really appreciate it.

markphillips100 avatar May 03 '22 08:05 markphillips100

@FabianKramm do you have any expectation on a possible solution for this issue? No pressure, just wanted to do some planning of my own is all.

markphillips100 avatar May 10 '22 14:05 markphillips100

Any updates, or whether this change would make it into v6 @FabianKramm ?

markphillips100 avatar Jun 23 '22 00:06 markphillips100

@markphillips100 I believe this should work with the latest DevSpace version. Is it currently still a problem?

FabianKramm avatar Sep 21 '22 16:09 FabianKramm

I haven't tried in a while so will give it a go and let you know.

markphillips100 avatar Sep 21 '22 17:09 markphillips100

Yep all good. Just shows a warning about a missing kubeconfig but no longer prevents the image builds. Thank you @FabianKramm

markphillips100 avatar Sep 25 '22 03:09 markphillips100

Hello! Thank you @markphillips100 for raising this issue up!

We're glad your use case was successful with our updated version. So, I will close this issue as there are no clarifications left.

If you have any further questions or concerns, we'd be happy to support!

alexandradragodan avatar Oct 21 '22 11:10 alexandradragodan