Skip to content

Commit

Permalink
Merge pull request txn2#91 from calmkart/new_clean
Browse files Browse the repository at this point in the history
MOD:remove the pod get in range pods
  • Loading branch information
cjimti authored Nov 8, 2019
2 parents d4a3466 + 97c3d2c commit 3fae8dc
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 @@ -325,12 +325,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 3fae8dc

Please sign in to comment.