Skip to content

Commit

Permalink
add infraport name
Browse files Browse the repository at this point in the history
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
  • Loading branch information
cnvergence committed Oct 11, 2023
1 parent a660419 commit ecfb164
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions internal/gatewayapi/contexts.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
// setting conditions, accessing Listeners, etc.
type GatewayContext struct {
*v1beta1.Gateway

listeners []*ListenerContext
}

Expand Down
6 changes: 2 additions & 4 deletions internal/gatewayapi/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,9 @@ func (t *Translator) ProcessListeners(gateways []*GatewayContext, xdsIR XdsIRMap
proto = ir.UDPProtocolType
}

var infraPortName string
if isMergeGatewaysEnabled(resources) {
infraPortName := string(listener.Name)
if t.MergeGateways {
infraPortName = irInfraPortName(listener)
} else {
infraPortName = string(listener.Name)
}

infraPort := ir.ListenerPort{
Expand Down

0 comments on commit ecfb164

Please sign in to comment.