feat(marathon): add whitelistSourceRange label.
This commit is contained in:
parent
38a3fe4316
commit
edc55aad3c
2 changed files with 7 additions and 0 deletions
|
@ -49,6 +49,7 @@ func (p *Provider) buildConfiguration() *types.Configuration {
|
||||||
"getBasicAuth": getFuncSliceStringService(label.TraefikFrontendAuthBasic),
|
"getBasicAuth": getFuncSliceStringService(label.TraefikFrontendAuthBasic),
|
||||||
"getServiceNames": getServiceNames,
|
"getServiceNames": getServiceNames,
|
||||||
"getServiceNameSuffix": getServiceNameSuffix,
|
"getServiceNameSuffix": getServiceNameSuffix,
|
||||||
|
"getWhitelistSourceRange": getFuncSliceStringService(label.TraefikFrontendWhitelistSourceRange),
|
||||||
}
|
}
|
||||||
|
|
||||||
v := url.Values{}
|
v := url.Values{}
|
||||||
|
|
|
@ -62,6 +62,12 @@
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
|
||||||
|
{{if getWhitelistSourceRange $app $serviceName}}
|
||||||
|
whitelistSourceRange = [{{range getWhitelistSourceRange $app $serviceName}}
|
||||||
|
"{{.}}",
|
||||||
|
{{end}}]
|
||||||
|
{{end}}
|
||||||
|
|
||||||
basicAuth = [{{range getBasicAuth $app $serviceName}}
|
basicAuth = [{{range getBasicAuth $app $serviceName}}
|
||||||
"{{.}}",
|
"{{.}}",
|
||||||
{{end}}]
|
{{end}}]
|
||||||
|
|
Loading…
Reference in a new issue