fix two bugs with backend-protocol annotation

This commit is contained in:
Elvin Efendi 2018-10-18 15:47:29 -04:00
parent ad89a93a29
commit cdb244e579
2 changed files with 5 additions and 0 deletions

View file

@ -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)

View file

@ -341,6 +341,10 @@ func (l1 *Location) Equal(l2 *Location) bool {
return false
}
if l1.BackendProtocol != l2.BackendProtocol {
return false
}
return true
}