Skip to content

There is no command to close a port forward #19871

@seilorjunior

Description

@seilorjunior

[provide a description of the issue]
I am exposing my mongo by the command
oc port-forward mongodb-0 27017:27017 --request-timeout=30s

First the timeout of 30s is not closing the connection.
Also there is no command to close the port forward in another thread

Version

oc v3.7.1+ab0f056
kubernetes v1.7.6+a08f5eeb62
features: Basic-Auth

Server https://ocp-admin.got.xxx.net
openshift v3.6.173.0.21
kubernetes v1.6.1+5115d708d7

Steps To Reproduce
  1. [step 1]
    run the command
    oc port-forward mongodb-0 27017:27017 --request-timeout=30s

  2. [step 2]

Current Result

The timeout does not work

Expected Result

The timeout should work

Additional Information

[try to run $ oc adm diagnostics (or oadm diagnostics) command if possible]
[if you are reporting issue related to builds, provide build logs with BUILD_LOGLEVEL=5]
[consider attaching output of the $ oc get all -o json -n <namespace> command to the issue]
[visit https://docs.openshift.org/latest/welcome/index.html]

Metadata

Metadata

Assignees

Labels

lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.sig/master

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions