Skip to content

Commit bcebb14

Browse files
committed
MINOR: Run Global Cfg handler before haproxy startup
1 parent 6296639 commit bcebb14

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

controller/handler.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ func (c *HAProxyController) initHandlers() {
6161

6262
func (c *HAProxyController) startupHandlers() error {
6363
handlers := []UpdateHandler{
64+
handler.GlobalCfg{},
6465
handler.HTTPBind{
6566
HTTP: !c.OSArgs.DisableHTTP,
6667
HTTPS: !c.OSArgs.DisableHTTPS,
@@ -71,9 +72,6 @@ func (c *HAProxyController) startupHandlers() error {
7172
IPv4Addr: c.OSArgs.IPV4BindAddr,
7273
IPv6Addr: c.OSArgs.IPV6BindAddr,
7374
}}
74-
if c.OSArgs.External {
75-
handlers = append(handlers, handler.GlobalCfg{})
76-
}
7775
for _, handler := range handlers {
7876
_, err := handler.Update(c.Store, &c.Cfg, c.Client)
7977
if err != nil {

0 commit comments

Comments
 (0)