Skip to content

Commit

Permalink
???
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed Sep 18, 2024
1 parent 1d1e1f8 commit 0948a2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/embedded-cluster/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func maybePromptForNoProxy(c *cli.Context, proxy *ecv1beta1.ProxySpec) (*ecv1bet
logrus.Infof("no-proxy was not set, using default no proxy %s", cleanDefaultIPNet)
proxy.ProvidedNoProxy = cleanDefaultIPNet
regenerateNoProxy(c, proxy)
logrus.Infof("final no-proxy is %q", proxy.NoProxy)
logrus.Infof("final (default) no-proxy is %q", proxy.NoProxy)
return proxy, nil
} else {
return promptForNoProxy(c, proxy, cleanDefaultIPNet, defaultIPNet.IP.String())
Expand Down Expand Up @@ -157,6 +157,7 @@ func promptForNoProxy(c *cli.Context, proxy *ecv1beta1.ProxySpec, subnet, IP str
}
proxy.ProvidedNoProxy = newProxy
regenerateNoProxy(c, proxy)
fmt.Printf("final (provided) no-proxy is %q\n", proxy.NoProxy)
return proxy, nil
}

Expand Down
1 change: 1 addition & 0 deletions e2e/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func TestProxiedEnvironment(t *testing.T) {
line := []string{"single-node-install.sh", "ui"}
line = append(line, "--http-proxy", cluster.HTTPProxy)
line = append(line, "--https-proxy", cluster.HTTPProxy)
line = append(line, "--no-proxy", "10.0.0.0/25") // test with half the default subnet, because the proxy is within the subnet otherwise
if _, _, err := RunCommandOnNode(t, tc, 0, line, withProxyEnv(tc.IPs)); err != nil {
t.Fatalf("fail to install embedded-cluster on node %s: %v", tc.Nodes[0], err)
}
Expand Down

0 comments on commit 0948a2e

Please sign in to comment.