Skip to content

Commit

Permalink
fix(port-forward): Consider pod ready if asking for an undefined port
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
  • Loading branch information
ViBiOh committed Jun 26, 2023
1 parent c0fcbc7 commit af88643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/forward/forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func isForwardPodReady(pod *v1.Pod, remotePort int32) bool {
container, hasReadiness := getForwardContainer(pod, remotePort)

if len(container) == 0 {
return false
return true
}

if !hasReadiness {
Expand Down

0 comments on commit af88643

Please sign in to comment.