From 735c7742e8f30539c078d27751d40f74c2de1600 Mon Sep 17 00:00:00 2001 From: Jared Allard Date: Tue, 22 Sep 2020 11:05:55 -0700 Subject: [PATCH] fix: dont fallback to servicePort.Name for containerPort.Name when not found --- internal/expose/port.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/expose/port.go b/internal/expose/port.go index 408b169..22775a4 100644 --- a/internal/expose/port.go +++ b/internal/expose/port.go @@ -67,9 +67,6 @@ func (p *ServiceForward) createServerPodAndTransport(ctx context.Context) (func( for i, port := range p.Ports { portInt := int(port.TargetPort.IntVal) name := port.OriginalTargetPort - if name == "" { - name = port.Name - } cp := corev1.ContainerPort{ ContainerPort: int32(portInt), Name: name,