Implement /traefik/alias for KV stores.

This commit is contained in:
Advait Shinde 2016-02-15 18:14:21 -05:00
parent 786acc961a
commit aacedcc4b3

View file

@ -70,7 +70,8 @@ func (provider *Kv) loadConfig() *types.Configuration {
templateObjects := struct { templateObjects := struct {
Prefix string Prefix string
}{ }{
provider.Prefix, // Allow `/traefik/alias` to superesede `provider.Prefix`
strings.TrimSuffix(provider.get(provider.Prefix, provider.Prefix+"/alias"), "/"),
} }
var KvFuncMap = template.FuncMap{ var KvFuncMap = template.FuncMap{
"List": provider.list, "List": provider.list,