Skip to content

Commit

Permalink
fix two bugs with backend-protocol annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvinEfendi committed Oct 19, 2018
1 parent ad89a93 commit cdb244e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/ingress/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions internal/ingress/types_equals.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ func (l1 *Location) Equal(l2 *Location) bool {
return false
}

if l1.BackendProtocol != l2.BackendProtocol {
return false
}

return true
}

Expand Down

0 comments on commit cdb244e

Please sign in to comment.