godaddy / godaddy/kubernetes-client

How do you use the PodPortForward

Open
#616 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
963
Forks
189
PR merge metrics
No merged PRs in 30d

Description

I am a bit new to this side of the api after trying the official one and getting stuck on trying to have support for the portforward part of it. In the docs it only lists the post and get requests with the getStream being deprecated. Yet when I call those (post/get) I get the error upgrade required with status code 400.

my current way of calling it is
`await client.api.v1.namespaces('default').pods('somepod').portforward.post({qs:{ports:[3000]}}))`

Contributor guide

Open the contributing guide

Research direction

Review the portforward documentation and the reported call to client.api.v1.namespaces('default').pods('somepod').portforward.post({qs:{ports:[3000]}}). Determine which port-forward request forms are supported and what the documented usage should show. Done means the documentation clearly explains the working invocation and the meaning of the reported 400 upgrade-required error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, kubernetes, node.js
Domain
api, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.