Skip to content

Commit

Permalink
Add annotations to location of default backend (root context)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmoraisjr committed Mar 31, 2017
1 parent 8fc75dc commit 8552351
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/pkg/ingress/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,12 @@ func (ic *GenericController) getBackendServers() ([]*ingress.Backend, []*ingress
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 &&
host != defServerName {
glog.V(3).Infof("ingress rule %v/%v does not contains HTTP rules. using default backend", ing.Namespace, ing.Name)
Expand Down

0 comments on commit 8552351

Please sign in to comment.