Skip to content

Commit

Permalink
Merge pull request #147 from openshift-cherrypick-robot/cherry-pick-1…
Browse files Browse the repository at this point in the history
…40-to-release-4.6

[release-4.6] [release-4.7] Bug 1983124:  Keepalived- verify that unicast peers list isn't empty on master nodes
  • Loading branch information
openshift-merge-robot committed Jul 23, 2021
2 parents a6d621b + 9a0d8dc commit cdc8995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/monitor/dynkeepalived.go
Expand Up @@ -88,7 +88,7 @@ func doesConfigChanged(curConfig, appliedConfig *config.Node) bool {
// we want to apply new config to master nodes only after nodes appears in etcd, with this
// approach we should avoid asymetric configuration
if curConfig.EnableUnicast {
if os.Getenv("IS_BOOTSTRAP") == "no" && len(curConfig.LBConfig.Backends) == 0 {
if os.Getenv("IS_BOOTSTRAP") == "no" && len(curConfig.LBConfig.Backends) < 2 {
validConfig = false
}
}
Expand Down

0 comments on commit cdc8995

Please sign in to comment.