Skip to content

Commit

Permalink
Merge pull request #976 from nkubala/port_forward
Browse files Browse the repository at this point in the history
Don't prefix pod names when port forwarding
  • Loading branch information
nkubala authored Sep 13, 2018
2 parents 0603ae9 + c3ccfaa commit fc6bebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/skaffold/kubernetes/port_forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type kubectlForwarder struct{}
func (*kubectlForwarder) Forward(pfe *portForwardEntry) error {
logrus.Debugf("Port forwarding %s", pfe)
portNumber := fmt.Sprintf("%d", pfe.port)
cmd := exec.Command("kubectl", "port-forward", fmt.Sprintf("pod/%s", pfe.podName), portNumber, portNumber)
cmd := exec.Command("kubectl", "port-forward", pfe.podName, portNumber, portNumber)
pfe.cmd = cmd

buf := &bytes.Buffer{}
Expand Down

0 comments on commit fc6bebc

Please sign in to comment.