Skip to content

Commit 1dfb597

Browse files
committed
MEDIUM: runtime: be more resilient when starting controller
on some machines, HAProxy can start slower than expected, we can ignore that on startup
1 parent 7a71e80 commit 1dfb597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/haproxy/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ type clientNative struct {
8686
func New(transactionDir, configFile, programPath, runtimeSocket string) (client HAProxyClient, err error) { //nolint:ireturn
8787
var runtimeClient runtime.Runtime
8888
if runtimeSocket != "" {
89-
runtimeClient, err = runtime.New(context.Background(), runtimeoptions.Socket(runtimeSocket))
89+
runtimeClient, err = runtime.New(context.Background(), runtimeoptions.Socket(runtimeSocket), runtimeoptions.DoNotCheckRuntimeOnInit)
9090
} else {
9191
runtimeClient, err = runtime.New(context.Background())
9292
}

0 commit comments

Comments
 (0)