Skip to content

Commit

Permalink
Merge pull request #17030 from imcsk8/duplicate-timeout
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue.

Fix duplicate timeout directive

When haproxy.router.openshift.io/timeout is set the template
is setting the timeout directive twice.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1503637
  • Loading branch information
openshift-merge-robot authored Oct 31, 2017
2 parents 6b1a836 + 285296f commit 1f2c61a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions images/router/haproxy/conf/haproxy-config.template
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,6 @@ backend be_secure:{{$cfgIdx}}
tcp-request content reject if !whitelist
{{- end }}
{{- with $value := firstMatch $timeSpecPattern (index $cfg.Annotations "haproxy.router.openshift.io/timeout")}}
timeout server {{$value}}
{{- end }} {{/* end balance algorithm setting. */}}

{{- with $value := firstMatch $timeSpecPattern (index $cfg.Annotations "haproxy.router.openshift.io/timeout") }}
timeout server {{$value}}
{{- end }}

Expand Down

0 comments on commit 1f2c61a

Please sign in to comment.