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

Do not fail creating the provisioner HTTP client #2034

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Conversation

maraino
Copy link
Contributor

@maraino maraino commented Oct 16, 2024

Description

This commit avoids an error starting the CA if the http.DefaultTransport is not an *http.Transport. If the DefaultTransport is overwritten, the newHTTPClient method will return a simple *http.Client. With an *http.Transport, it will return a client that trusts the system certificate pool and the CA roots.

This commit avoids an error starting the CA if the `http.DefaultTransport`
is not an `*http.Transport`. If the DefaultTransport is overwritten, the
newHTTPClient method will return a simple *http.Client. With an
*http.Transport, it will return a client that trusts the system
certificate pool and the CA roots.
@maraino maraino requested a review from dopey October 16, 2024 01:09
@github-actions github-actions bot added the needs triage Waiting for discussion / prioritization by team label Oct 16, 2024
@maraino maraino merged commit 4d59f35 into master Oct 16, 2024
16 checks passed
@maraino maraino deleted the mariano/http-client branch October 16, 2024 01:33
@hslatman hslatman added this to the v0.27.5 milestone Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Waiting for discussion / prioritization by team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants