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

Kotsadm works with HTTP_PROXY #605

Merged
merged 1 commit into from
May 29, 2020
Merged

Conversation

areed
Copy link
Contributor

@areed areed commented May 28, 2020

Includes template functions for proxy and no_proxy.

There was a docker library that that didn't have an option to configure the http client so the original plan of using PROXY_ADDRESS env var and opting-in for non-cluster requests didn't work. Instead replicatedhq/kURL#486 expands the NO_PROXY var to include all in-cluster hostnames.

Add proxy template functions
@@ -66,7 +66,7 @@ export class VeleroClient {
if (!cluster) {
throw new Error("No cluster available from kubeconfig");
}
this.server = cluster.server;
this.server = "https://kubernetes.default"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the cluster IP of the kubernetes service. No proxy includes the whole service CIDR but this node library does not handle cidrs.

@@ -22,6 +22,7 @@ var (
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
},
Proxy: http.ProxyFromEnvironment,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GraphQL calls this by FFI when testing registry credentials.

@areed areed requested a review from divolgin May 29, 2020 00:26
@areed areed merged commit 234af11 into replicatedhq:master May 29, 2020
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.

None yet

2 participants