Skip to content

Commit

Permalink
fix: dont fallback to servicePort.Name for containerPort.Name when no…
Browse files Browse the repository at this point in the history
…t found
  • Loading branch information
jaredallard committed Sep 22, 2020
1 parent 89bd9a2 commit 735c774
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/expose/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 735c774

Please sign in to comment.