defenseunicorns / kubernetes-fluent-client

A @kubernetes/client-node fluent API wrapper that leverages K8s Server Side Apply for use with https://pepr.dev
Apache License 2.0
13 stars 4 forks source link

Provide ability to manage port-forwards #410

Open mjnagel opened 1 week ago

mjnagel commented 1 week ago

Is your feature request related to a problem? Please describe.

I am using some other Javascript/Typescript tooling for e2e testing (Playwright) on UIs in my k8s cluster. Some UIs are not externally exposed and I would like to start and stop port-forwards as needed during my tests.

Describe the solution you'd like

Provide a new K8s.PortForward type function that could be used to portforward the given pod/service and port. Also ideally provide an easy way to start and stop the portforward.

Describe alternatives you've considered

Manage the port-forward with kubectl or other tooling outside of KFC and potentially outside of TS.

cmwylie19 commented 2 days ago

@jeff-mccoy asked us to put this on hold for now, he mentioned that this is something Zarf can do and that he may push back. Waiting for further instruction around prioritization.