kubectl-multiforward icon indicating copy to clipboard operation
kubectl-multiforward copied to clipboard

Allow to independently declare LocalPort and ServicePort

Open almereyda opened this issue 2 years ago • 3 comments

In

https://github.com/njnygaard/kubectl-multiforward/blob/1807ecef5b64892bbb30bc3ad8865960a0fad3e7/forward/forward.go#L115-L116

we see that LocalPort and ServicePort are both set to the same value of Port.

Could it be possible to voluntarily support setting LocalPort and ServicePort individually, if

  1. no Port is set
  2. and both keys are present?

almereyda avatar Sep 02 '22 17:09 almereyda

@almereyda : There is a fix available, see pull-request #6 . You can clone my fork and simply 'make' to get the kubectl-multiforward binary. Hope it helps

ledroide avatar Nov 23 '22 10:11 ledroide

Sorry for the delay folks! I've make a new issue for myself that I will have to handle on a different laptop: https://github.com/njnygaard/kubectl-multiforward/issues/7

I'll try to get that out there for ya'll.

njnygaard avatar Nov 23 '22 17:11 njnygaard

@ledroide Thank you for picking this up.

@njnygaard Looking forward to the next release.

almereyda avatar Nov 25 '22 16:11 almereyda