Skip to content

Commit

Permalink
fix(phase/configure_k0s): do not add etcd peerAddress for localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
secustor committed Jan 7, 2025
1 parent 082a528 commit 155bfde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phase/configure_k0s.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func (p *ConfigureK0s) configFor(h *cluster.Host) (string, error) {
}
}

if cfg.Dig("spec", "storage", "etcd", "peerAddress") != nil || h.PrivateAddress != "" {
if cfg.Dig("spec", "storage", "etcd", "peerAddress") != nil && h.PrivateAddress != "" {
cfg.DigMapping("spec", "storage", "etcd")["peerAddress"] = addr
}

Expand Down

0 comments on commit 155bfde

Please sign in to comment.