Skip to content

Commit

Permalink
keep current logic and ignore for 'single'
Browse files Browse the repository at this point in the history
  • Loading branch information
secustor committed Jan 13, 2025
1 parent 155bfde commit 10e7d08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions phase/configure_k0s.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,10 @@ func (p *ConfigureK0s) configFor(h *cluster.Host) (string, error) {
}
}

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

if _, ok := cfg["apiVersion"]; !ok {
Expand Down

0 comments on commit 10e7d08

Please sign in to comment.