containers / podman-desktop

Podman Desktop is the best free and open source tool to work with Containers and Kubernetes for developers. Get an intuitive and user-friendly interface to effortlessly build, manage, and deploy containers and Kubernetes — all from your desktop.
https://podman-desktop.io
Apache License 2.0
4.84k stars 306 forks source link

bug(k8s-port-forward): host not reachable still create the port forward #9640

Open axel7083 opened 1 week ago

axel7083 commented 1 week ago

Bug description

If we create a kubernetes resource and specify a port which has no listener, the port forward will fail, but still create a mapping.

Operating system

Fedora 40

Installation Method

None

Version

1.13.3

Steps to reproduce

  1. create a pod with ports without any listener in it
  2. Try to forward the fake port

Relevant log output

Image

Additional context

No response

axel7083 commented 1 week ago

This bug should be solved by https://github.com/containers/podman-desktop/issues/9637 (if not, would need dedicated work)