Update Server Alias Annotation with Review Changes

Updates the Server-Alias annotation to create another server
containing the same configuration as the current server, but
with the name provided in the annotation.
This commit is contained in:
Fernando Diaz 2017-08-15 01:23:19 -05:00
parent ac504bdbc0
commit 62fea9aa01
4 changed files with 220 additions and 219 deletions

View file

@ -147,6 +147,9 @@ var (
"toLower": strings.ToLower,
"formatIP": formatIP,
"buildNextUpstream": buildNextUpstream,
"serverConfig": func(all config.TemplateConfig, server *ingress.Server) interface{} {
return struct { First, Second interface{} } { all, server }
},
}
)