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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubernetes driver: add support for proxy-url #1780

Merged

Conversation

IamShobe
Copy link
Contributor

@IamShobe IamShobe commented May 9, 2023

Hi there :),
Sorry about the previous PR, I opened it prematurely before finalizing all tests, and preparing a proper PR 馃檹.
Hopefully, I'm properly following your contribution guidelines, and if I need to change anything please LMK.

This PR attempts to add support in kuberenetes driver for proxy-url config in the KUBECONFIG file -
official docs here.

The PR initializes the k8s client config created in KubernetesConfig receiver method with the right proxy-url parameter.

As a workaround, we were using HTTPS_PROXY env var, but that forces every request that buildx sends to use the same proxy as well.
This feature, allows only the traffic that goes to the k8s cluster (kubeapi) - to be routed via the proxy.

Signed-off-by: Elran Shefer elran.shefer@velocity.tech

@IamShobe IamShobe force-pushed the elranshefer/add-support-for-proxy-url branch from e5e7436 to 6a1af0b Compare May 9, 2023 08:35
@AkihiroSuda
Copy link
Collaborator

Looks good, but please squash commits

Signed-off-by: Elran Shefer <elran.shefer@velocity.tech>
@IamShobe IamShobe force-pushed the elranshefer/add-support-for-proxy-url branch from 6a1af0b to 29b427c Compare May 10, 2023 05:37
@IamShobe
Copy link
Contributor Author

IamShobe commented May 10, 2023

Done :)

@crazy-max crazy-max merged commit 167340d into docker:master May 11, 2023
54 checks passed
@crazy-max crazy-max added this to the v0.11.0 milestone May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants