Skip to content

Commit

Permalink
chore: fix message when join node is not included in the no-proxy add…
Browse files Browse the repository at this point in the history
…resses (#1496)
  • Loading branch information
emosbaugh authored Nov 13, 2024
1 parent f805a16 commit 69cac01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/cmd/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,10 @@ var joinCommand = &cli.Command{
return fmt.Errorf("failed to check proxy config for local IP: %w", err)
}
if !proxyOK {
return fmt.Errorf("no-proxy config %q does not allow access to local IP %q", jcmd.InstallationSpec.Proxy.NoProxy, localIP)
logrus.Errorf("This node's IP address %s is not included in the no-proxy list (%s).", localIP, jcmd.InstallationSpec.Proxy.NoProxy)
logrus.Infof(`The no-proxy list cannot easily be modified after initial installation.`)
logrus.Infof(`Recreate the first node and pass all node IP addresses to --no-proxy.`)
return ErrNothingElseToAdd
}

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

0 comments on commit 69cac01

Please sign in to comment.