Remove hardcoded frontend prefix in Kubernetes template
This commit is contained in:
parent
088b8fb348
commit
bad71d1a36
2 changed files with 10 additions and 10 deletions
|
@ -865,9 +865,9 @@ var _templatesKubernetesTmpl = []byte(`[backends]
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if $frontend.Errors }}
|
{{if $frontend.Errors }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors]
|
[frontends."{{ $frontendName }}".errors]
|
||||||
{{range $pageName, $page := $frontend.Errors }}
|
{{range $pageName, $page := $frontend.Errors }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors.{{ $pageName }}]
|
[frontends."{{ $frontendName }}".errors.{{ $pageName }}]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -877,11 +877,11 @@ var _templatesKubernetesTmpl = []byte(`[backends]
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if $frontend.RateLimit }}
|
{{if $frontend.RateLimit }}
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit]
|
[frontends."{{ $frontendName }}".rateLimit]
|
||||||
extractorFunc = "{{ $frontend.RateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $frontend.RateLimit.ExtractorFunc }}"
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
||||||
{{range $limitName, $limit := $frontend.RateLimit.RateSet }}
|
{{range $limitName, $limit := $frontend.RateLimit.RateSet }}
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
|
|
@ -68,9 +68,9 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if $frontend.Errors }}
|
{{if $frontend.Errors }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors]
|
[frontends."{{ $frontendName }}".errors]
|
||||||
{{range $pageName, $page := $frontend.Errors }}
|
{{range $pageName, $page := $frontend.Errors }}
|
||||||
[frontends."frontend-{{ $frontendName }}".errors.{{ $pageName }}]
|
[frontends."{{ $frontendName }}".errors.{{ $pageName }}]
|
||||||
status = [{{range $page.Status }}
|
status = [{{range $page.Status }}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
@ -80,11 +80,11 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if $frontend.RateLimit }}
|
{{if $frontend.RateLimit }}
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit]
|
[frontends."{{ $frontendName }}".rateLimit]
|
||||||
extractorFunc = "{{ $frontend.RateLimit.ExtractorFunc }}"
|
extractorFunc = "{{ $frontend.RateLimit.ExtractorFunc }}"
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
||||||
{{range $limitName, $limit := $frontend.RateLimit.RateSet }}
|
{{range $limitName, $limit := $frontend.RateLimit.RateSet }}
|
||||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
[frontends."{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
||||||
period = "{{ $limit.Period }}"
|
period = "{{ $limit.Period }}"
|
||||||
average = {{ $limit.Average }}
|
average = {{ $limit.Average }}
|
||||||
burst = {{ $limit.Burst }}
|
burst = {{ $limit.Burst }}
|
||||||
|
|
Loading…
Reference in a new issue