Skip to content
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

feat: store kube config file to make buildx builder switchable #497

Merged
merged 1 commit into from
Jan 4, 2021

Conversation

morlay
Copy link
Collaborator

@morlay morlay commented Dec 30, 2020

issue from slack by David Giffin

Is there a way to pass a kubeconfig to "docker buildx"? I need to be able to switch between clusters / builders easily. It looks like buildx is using the default context / cluster when creating buildkit deployments, running builds, etc

failed use docker context, the auth way not support only username & password (https://github.com/docker/cli/blob/master/cli/context/kubernetes/load.go#L73-L74),
which will break other auth ways like client-key & client-cert.

just added query parameter config-file (from KUBECONFIG when builder created). and dynamic load kube config when use the kubernetes builder.

commands/create.go Outdated Show resolved Hide resolved
commands/util.go Outdated Show resolved Hide resolved
@morlay morlay force-pushed the k8s-driver-configuration-bind branch 2 times, most recently from a339e41 to 26fa4fc Compare December 30, 2020 09:24
Signed-off-by: Wang <morlay.null@gmail.com>
@morlay morlay force-pushed the k8s-driver-configuration-bind branch from 26fa4fc to 68cebff Compare December 30, 2020 09:28
@tonistiigi tonistiigi merged commit da8c8cc into docker:master Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants