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}}
|
||||
|
||||
{{if $frontend.Errors }}
|
||||
[frontends."frontend-{{ $frontendName }}".errors]
|
||||
[frontends."{{ $frontendName }}".errors]
|
||||
{{range $pageName, $page := $frontend.Errors }}
|
||||
[frontends."frontend-{{ $frontendName }}".errors.{{ $pageName }}]
|
||||
[frontends."{{ $frontendName }}".errors.{{ $pageName }}]
|
||||
status = [{{range $page.Status }}
|
||||
"{{.}}",
|
||||
{{end}}]
|
||||
|
@ -877,11 +877,11 @@ var _templatesKubernetesTmpl = []byte(`[backends]
|
|||
{{end}}
|
||||
|
||||
{{if $frontend.RateLimit }}
|
||||
[frontends."frontend-{{ $frontendName }}".rateLimit]
|
||||
[frontends."{{ $frontendName }}".rateLimit]
|
||||
extractorFunc = "{{ $frontend.RateLimit.ExtractorFunc }}"
|
||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
||||
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
||||
{{range $limitName, $limit := $frontend.RateLimit.RateSet }}
|
||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
||||
[frontends."{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
||||
period = "{{ $limit.Period }}"
|
||||
average = {{ $limit.Average }}
|
||||
burst = {{ $limit.Burst }}
|
||||
|
|
|
@ -68,9 +68,9 @@
|
|||
{{end}}
|
||||
|
||||
{{if $frontend.Errors }}
|
||||
[frontends."frontend-{{ $frontendName }}".errors]
|
||||
[frontends."{{ $frontendName }}".errors]
|
||||
{{range $pageName, $page := $frontend.Errors }}
|
||||
[frontends."frontend-{{ $frontendName }}".errors.{{ $pageName }}]
|
||||
[frontends."{{ $frontendName }}".errors.{{ $pageName }}]
|
||||
status = [{{range $page.Status }}
|
||||
"{{.}}",
|
||||
{{end}}]
|
||||
|
@ -80,11 +80,11 @@
|
|||
{{end}}
|
||||
|
||||
{{if $frontend.RateLimit }}
|
||||
[frontends."frontend-{{ $frontendName }}".rateLimit]
|
||||
[frontends."{{ $frontendName }}".rateLimit]
|
||||
extractorFunc = "{{ $frontend.RateLimit.ExtractorFunc }}"
|
||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet]
|
||||
[frontends."{{ $frontendName }}".rateLimit.rateSet]
|
||||
{{range $limitName, $limit := $frontend.RateLimit.RateSet }}
|
||||
[frontends."frontend-{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
||||
[frontends."{{ $frontendName }}".rateLimit.rateSet.{{ $limitName }}]
|
||||
period = "{{ $limit.Period }}"
|
||||
average = {{ $limit.Average }}
|
||||
burst = {{ $limit.Burst }}
|
||||
|
|
Loading…
Reference in a new issue