Skip to content

Commit

Permalink
Fix duplication of ConfigFrontend snippets for DefaultBackend
Browse files Browse the repository at this point in the history
This fixes an issue where any frontend configuration is duplicated twice for the default backend, e.g. config-frontend in the ConfigMap of `http-response add-header my-header` results in two headers `my-header` in the response from the default backend
  • Loading branch information
Gavin Bunney committed Jun 26, 2019
1 parent d346292 commit 4bfbab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/haproxy/template/haproxy-v07.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ frontend http{{ if and $hasSSL (not $hasBalance) }}s{{ end }}front-{{ if $isShar
{{- end }}

{{- /*------------------------------------*/}}
{{- if $hasBalance }}
{{- if and $hasBalance (not $isDefault) }}
{{- range $snippet := $ing.ConfigFrontend }}
{{ $snippet }}
{{- end }}
Expand Down

0 comments on commit 4bfbab1

Please sign in to comment.