Fix the k8s redirection template.

This commit is contained in:
Ludovic Fernandez 2018-01-24 08:12:03 +01:00 committed by Traefiker
parent ae9342208e
commit f5d150c3b4
2 changed files with 6 additions and 6 deletions

View file

@ -441,9 +441,9 @@ var _templatesKubernetesTmpl = []byte(`[backends]{{range $backendName, $backend
{{if $frontend.Redirect}} {{if $frontend.Redirect}}
[frontends."{{$frontendName}}".redirect] [frontends."{{$frontendName}}".redirect]
entryPoint = "{{$frontend.RedirectEntryPoint}}" entryPoint = "{{$frontend.Redirect.EntryPoint}}"
regex = "{{$frontend.RedirectRegex}}" regex = "{{$frontend.Redirect.Regex}}"
replacement = "{{$frontend.RedirectReplacement}}" replacement = "{{$frontend.Redirect.Replacement}}"
{{end}} {{end}}
{{ if $frontend.Headers }} {{ if $frontend.Headers }}

View file

@ -37,9 +37,9 @@
{{if $frontend.Redirect}} {{if $frontend.Redirect}}
[frontends."{{$frontendName}}".redirect] [frontends."{{$frontendName}}".redirect]
entryPoint = "{{$frontend.RedirectEntryPoint}}" entryPoint = "{{$frontend.Redirect.EntryPoint}}"
regex = "{{$frontend.RedirectRegex}}" regex = "{{$frontend.Redirect.Regex}}"
replacement = "{{$frontend.RedirectReplacement}}" replacement = "{{$frontend.Redirect.Replacement}}"
{{end}} {{end}}
{{ if $frontend.Headers }} {{ if $frontend.Headers }}