From bcebb148e1e91b838236f67eb633d19b35bb0fa7 Mon Sep 17 00:00:00 2001 From: Moemen MHEDHBI Date: Sat, 2 Oct 2021 21:44:26 +0200 Subject: [PATCH] MINOR: Run Global Cfg handler before haproxy startup --- controller/handler.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/controller/handler.go b/controller/handler.go index 343039c5..89b32712 100644 --- a/controller/handler.go +++ b/controller/handler.go @@ -61,6 +61,7 @@ func (c *HAProxyController) initHandlers() { func (c *HAProxyController) startupHandlers() error { handlers := []UpdateHandler{ + handler.GlobalCfg{}, handler.HTTPBind{ HTTP: !c.OSArgs.DisableHTTP, HTTPS: !c.OSArgs.DisableHTTPS, @@ -71,9 +72,6 @@ func (c *HAProxyController) startupHandlers() error { IPv4Addr: c.OSArgs.IPV4BindAddr, IPv6Addr: c.OSArgs.IPV6BindAddr, }} - if c.OSArgs.External { - handlers = append(handlers, handler.GlobalCfg{}) - } for _, handler := range handlers { _, err := handler.Update(c.Store, &c.Cfg, c.Client) if err != nil {