Merge pull request #3266 from Shopify/fix-backend-protocol
fix two bugs with backend-protocol annotation
This commit is contained in:
commit
a3bf5dadaf
2 changed files with 5 additions and 0 deletions
|
@ -824,6 +824,7 @@ func (n *NGINXController) createServers(data []*extensions.Ingress,
|
|||
defLoc.Denied = anns.Denied
|
||||
defLoc.LuaRestyWAF = anns.LuaRestyWAF
|
||||
defLoc.InfluxDB = anns.InfluxDB
|
||||
defLoc.BackendProtocol = anns.BackendProtocol
|
||||
} else {
|
||||
glog.V(3).Infof("Ingress %q defines both a backend and rules. Using its backend as default upstream for all its rules.",
|
||||
ingKey)
|
||||
|
|
|
@ -341,6 +341,10 @@ func (l1 *Location) Equal(l2 *Location) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
if l1.BackendProtocol != l2.BackendProtocol {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue