Merge pull request #527 from jcmoraisjr/jm-ann-root-context
Add annotations to location of default backend (root context)
This commit is contained in:
commit
638ea2b51e
1 changed files with 6 additions and 0 deletions
|
@ -624,6 +624,12 @@ func (ic *GenericController) getBackendServers() ([]*ingress.Backend, []*ingress
|
||||||
server = servers[defServerName]
|
server = servers[defServerName]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add annotations to location of default backend (root context)
|
||||||
|
if len(server.Locations) > 0 {
|
||||||
|
loc := server.Locations[0]
|
||||||
|
mergeLocationAnnotations(loc, anns)
|
||||||
|
}
|
||||||
|
|
||||||
if rule.HTTP == nil &&
|
if rule.HTTP == nil &&
|
||||||
host != defServerName {
|
host != defServerName {
|
||||||
glog.V(3).Infof("ingress rule %v/%v does not contains HTTP rules. using default backend", ing.Namespace, ing.Name)
|
glog.V(3).Infof("ingress rule %v/%v does not contains HTTP rules. using default backend", ing.Namespace, ing.Name)
|
||||||
|
|
Loading…
Reference in a new issue