File tree 1 file changed +3
-3
lines changed
images/router/haproxy/conf
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ backend be_edge_http_{{$cfgIdx}}
227
227
balance leastconn
228
228
{{ end }}
229
229
{{ with $value := index $cfg.Annotations "router.openshift.io/haproxy.timeout"}}
230
- {{if (matchString "[ 0-9]*(us|ms|s|m|h|d)?" $value) }}
230
+ {{if (matchString "^[1-9][ 0-9]*(us|ms|s|m|h|d)?$ " $value) }}
231
231
timeout server {{$value}}
232
232
{{ end }}
233
233
{{ end }}
@@ -265,7 +265,7 @@ backend be_tcp_{{$cfgIdx}}
265
265
balance {{ env "ROUTER_TCP_BALANCE_SCHEME" "source" }}
266
266
{{ end }}
267
267
{{ with $value := index $cfg.Annotations "router.openshift.io/haproxy.timeout"}}
268
- {{if (matchString "[ 0-9]*(us|ms|s|m|h|d)?" $value) }}
268
+ {{if (matchString "^[1-9][ 0-9]*(us|ms|s|m|h|d)?$ " $value) }}
269
269
timeout server {{$value}}
270
270
{{ end }}
271
271
{{ end }}
@@ -293,7 +293,7 @@ backend be_secure_{{$cfgIdx}}
293
293
balance leastconn
294
294
{{ end }}
295
295
{{ with $value := index $cfg.Annotations "router.openshift.io/haproxy.timeout"}}
296
- {{if (matchString "[ 0-9]*(us|ms|s|m|h|d)?" $value) }}
296
+ {{if (matchString "^[1-9][ 0-9]*(us|ms|s|m|h|d)?$ " $value) }}
297
297
timeout server {{$value}}
298
298
{{ end }}
299
299
{{ end }}
You can’t perform that action at this time.
0 commit comments