Skip to content

Commit

Permalink
MOD:remove the pod get in range pods
Browse files Browse the repository at this point in the history
  • Loading branch information
calmkart committed Nov 8, 2019
1 parent 963be3e commit fc0b5bb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmd/kubefwd/services/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,6 @@ func fwdServices(opts FwdServiceOpts) error {
}
}

_, err = opts.ClientSet.CoreV1().Pods(pod.Namespace).Get(pod.Name, metav1.GetOptions{})
if err != nil {
log.Warnf("WARNING: Error getting pod: %s\n", err.Error())
break
}

serviceHostName := svc.Name

if podName {
Expand Down

0 comments on commit fc0b5bb

Please sign in to comment.