kubedock icon indicating copy to clipboard operation
kubedock copied to clipboard

Port forward automatic retry

Open doppelrittberger opened this issue 2 years ago • 1 comments

Hi I'm using your tool and I really like it. Currently I have a problem that some containers seem to open, close and reopen ports on startup and this causes the port forward feature to fail. Is it possible to change the code in a way that if you detect an abortion of the port forward the tool will automatically retry the port forward? This would make this feature more robust. Thanks Markus Ritter

P.S. if there is anything I can do to please let me know

doppelrittberger avatar Sep 02 '22 06:09 doppelrittberger

I experimented with this some time ago. The approach I had was to watch the output that was produced by the ToPod port-forward, and act when the output was broken. The problem with this approach was that the reconnect happened after the error (which usually meant the test failed already) and I stopped investing time in this.

joyrex2001 avatar Sep 07 '22 12:09 joyrex2001