Skip to content

Commit

Permalink
remove check for listener name
Browse files Browse the repository at this point in the history
  • Loading branch information
jm96441n committed Feb 6, 2024
1 parent e2f38cc commit b4d1455
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions control-plane/api/mesh/v2beta1/mesh_gateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ func (in *MeshGateway) ListenersToServicePorts(portModifier int32) []corev1.Serv

for _, listener := range in.Spec.Listeners {
port := int32(listener.Port)
if listener.Name == "wan" {
port = constants.DefaultWANPort
}

ports = append(ports, corev1.ServicePort{
Name: listener.Name,
Port: port,
Expand All @@ -173,6 +171,7 @@ func (in *MeshGateway) ListenersToContainerPorts(portModifier int32) []corev1.Co

for _, listener := range in.Spec.Listeners {
port := int32(listener.Port)

ports = append(ports, corev1.ContainerPort{
Name: listener.Name,
ContainerPort: port + portModifier,
Expand Down

0 comments on commit b4d1455

Please sign in to comment.