feat: store kube config file to make buildx builder switchable by morlay · Pull Request #497 · docker/buildx (original) (raw)
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.