diff --git a/provider/docker.go b/provider/docker.go index 27c35760d..e93d603fd 100644 --- a/provider/docker.go +++ b/provider/docker.go @@ -258,7 +258,6 @@ func (provider *Docker) loadDockerConfig(containersInspected []dockerData) *type "getMaxConnAmount": provider.getMaxConnAmount, "getMaxConnExtractorFunc": provider.getMaxConnExtractorFunc, "getSticky": provider.getSticky, - "replace": replace, } // filter containers diff --git a/provider/eureka.go b/provider/eureka.go index 50b5f9c6a..4b6ff8932 100644 --- a/provider/eureka.go +++ b/provider/eureka.go @@ -84,8 +84,6 @@ func (provider *Eureka) Provide(configurationChan chan<- types.ConfigMessage, po // Build the configuration from Eureka server func (provider *Eureka) buildConfiguration() (*types.Configuration, error) { var EurekaFuncMap = template.FuncMap{ - "replace": replace, - "tolower": strings.ToLower, "getPort": provider.getPort, "getProtocol": provider.getProtocol, "getWeight": provider.getWeight, diff --git a/provider/marathon.go b/provider/marathon.go index 3e3ef8d3a..5e901f37c 100644 --- a/provider/marathon.go +++ b/provider/marathon.go @@ -139,7 +139,6 @@ func (provider *Marathon) loadMarathonConfig() *types.Configuration { "getEntryPoints": provider.getEntryPoints, "getFrontendRule": provider.getFrontendRule, "getFrontendBackend": provider.getFrontendBackend, - "replace": replace, "hasCircuitBreakerLabels": provider.hasCircuitBreakerLabels, "hasLoadBalancerLabels": provider.hasLoadBalancerLabels, "hasMaxConnLabels": provider.hasMaxConnLabels, diff --git a/provider/mesos.go b/provider/mesos.go index 1822a3e60..b6db4f597 100644 --- a/provider/mesos.go +++ b/provider/mesos.go @@ -135,7 +135,6 @@ func (provider *Mesos) loadMesosConfig() *types.Configuration { "getFrontendBackend": provider.getFrontendBackend, "getID": provider.getID, "getFrontEndName": provider.getFrontEndName, - "replace": replace, } t := records.NewRecordGenerator(time.Duration(provider.StateTimeoutSecond) * time.Second)