Skip to content

Commit 69cac01

Browse files
authored
chore: fix message when join node is not included in the no-proxy addresses (#1496)
1 parent f805a16 commit 69cac01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/cmd/join.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@ var joinCommand = &cli.Command{
224224
return fmt.Errorf("failed to check proxy config for local IP: %w", err)
225225
}
226226
if !proxyOK {
227-
return fmt.Errorf("no-proxy config %q does not allow access to local IP %q", jcmd.InstallationSpec.Proxy.NoProxy, localIP)
227+
logrus.Errorf("This node's IP address %s is not included in the no-proxy list (%s).", localIP, jcmd.InstallationSpec.Proxy.NoProxy)
228+
logrus.Infof(`The no-proxy list cannot easily be modified after initial installation.`)
229+
logrus.Infof(`Recreate the first node and pass all node IP addresses to --no-proxy.`)
230+
return ErrNothingElseToAdd
228231
}
229232

230233
isAirgap := c.String("airgap-bundle") != ""

0 commit comments

Comments
 (0)