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 ctx param to GetLocalNode #3224

Merged
merged 2 commits into from
Nov 25, 2024
Merged

Conversation

tpantelis
Copy link
Contributor

This allows it to be cancelled by the user should retries take too long.

Since GetLocalNode is called from the Init method even handlers, the ctx param was also added to that method to allow propagation from main. Consequently the contextcheck linter also revealed other code paths where ctx should be propagated.

...and use/propagate in the implementations.

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr3224/tpantelis/get_local_node_ctx
🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.

@submariner-bot submariner-bot added the ready-to-test When a PR is ready for full E2E testing label Nov 25, 2024
@skitt skitt enabled auto-merge (rebase) November 25, 2024 14:11
@skitt skitt merged commit b99f193 into submariner-io:devel Nov 25, 2024
42 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr3224/tpantelis/get_local_node_ctx]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-test When a PR is ready for full E2E testing
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants