Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add request timeout flag for unary RPCs #1290

Merged
merged 2 commits into from Nov 13, 2023
Merged

Conversation

chancez
Copy link
Contributor

@chancez chancez commented Nov 10, 2023

Add the ability to configure the request timeout for unary RPCs (ServerStatus, ListNodes, ListNamespaces). Previously this was hardcoded at 12s and could not be overridden. I didn't implement this for streaming RPCs because timeouts for streams is significantly more nuanced.

Also updates a few cases where we're creating a cancellable context to cancel after the command func runs, but cobra provides a context for exactly that already, so use it.

Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
@chancez chancez added kind/enhancement This would improve or streamline existing functionality. ⌨️ area/cli Impacts the command line interface of any command in the repository. labels Nov 10, 2023
@chancez chancez self-assigned this Nov 10, 2023
@chancez chancez requested review from a team as code owners November 10, 2023 19:36
@chancez chancez requested review from rolinh and removed request for a team November 10, 2023 19:36
@maintainer-s-little-helper maintainer-s-little-helper bot added dont-merge/needs-release-note-label PR is blocked until the release note is set labels Nov 10, 2023
@chancez chancez added this to the Hubble CLI 1.0 milestone Nov 10, 2023
@rolinh rolinh added the release-note/minor This PR introduces functionality that users may find relevant to operating Hubble. label Nov 13, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label PR is blocked until the release note is set label Nov 13, 2023
Copy link
Member

@rolinh rolinh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rolinh rolinh merged commit c6fb10f into main Nov 13, 2023
5 checks passed
@rolinh rolinh deleted the pr/chancez/request_timeout branch November 13, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⌨️ area/cli Impacts the command line interface of any command in the repository. kind/enhancement This would improve or streamline existing functionality. release-note/minor This PR introduces functionality that users may find relevant to operating Hubble.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants