When you Port Forward an active port that may be forwarded in another cluster or the current cluster, there should be a popup that says this:
“You currently have a port forwarded on Cluster x in Pod x, do you want to stop this first?”
(make this wording look better and more understandable I just wrote it up)
YES OR NO
There should also be a checkbox: “Don’t ask again”. When this is checked, when you forward a port, it will automatically stop the existing port you try forwarding to, no popup needed.
Why should this be done?
Well, currently when you try to port forward a port you may already have forwarded for debugging purposes in another cluster (e.g. 5005 which is shared a lot), it just errors with “Error occurred starting port-forward”.
I think this would make things a lot more seamless when remote debugging with lens, and Lens is already a great app with great quality of life features so I think it would improve it greatly.