Skip to content

Commit 0197981

Browse files
michal800106oktalz
authored andcommitted
BUG/MINOR: add TuneOptions if is missing
without this set the lot of restarts occur because updated below is always true.
1 parent afc717f commit 0197981

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/controller/global.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ func (c *HAProxyController) globalCfg() (reload, restart bool) {
8181
}
8282
}
8383
}
84+
if newGlobal.TuneOptions == nil {
85+
newGlobal.TuneOptions = &models.GlobalTuneOptions{
86+
SslDefaultDhParam: 2048,
87+
}
88+
}
8489
env.SetGlobal(newGlobal, &newLg, c.haproxy.Env)
8590
updated = deep.Equal(newGlobal, global)
8691
if len(updated) != 0 {

0 commit comments

Comments
 (0)