Skip to content

Port Forward currently only allows forwarding to pod resource type #2746

@matt-ramcharan

Description

@matt-ramcharan

Currently the API reference for port-forward is hardcoded to the /pods/ route
https://github.com/kubernetes-client/javascript/blob/main/src/portforward.ts#L43

As per the Kubernetes docs, port-forward has functionality for any Resource Type (Service, Pod, Deployment, etc)
https://kubernetes.io/docs/reference/kubectl/generated/kubectl_port-forward/

Could there be an added parameter to change this dynamically?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions