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

introduce webclient.ReusableClient #49296

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

hugoShaka
Copy link
Contributor

@hugoShaka hugoShaka commented Nov 20, 2024

This PR adds a reusable webclient for kube-agent-updater consumption.

As described in RFD-184, the updaters should now obtain update instructions by hitting /find.

The kube agent updater is a long-running updater and checks the proxy endpoint frequently. To avoid creating a new HTTP client every minute, this PR extracts a reusable web client, offering the same Find(), Ping(), and GetMOTD() functions than the webproxy package.

Goal (internal): https://github.com/gravitational/cloud/issues/10289

@hugoShaka hugoShaka added the no-changelog Indicates that a PR does not require a changelog entry label Nov 23, 2024
@hugoShaka hugoShaka added this pull request to the merge queue Nov 27, 2024
Merged via the queue into master with commit 7d102ca Nov 27, 2024
80 of 85 checks passed
@hugoShaka hugoShaka deleted the hugo/reusable-webproxy-client branch November 27, 2024 15:40
@public-teleport-github-review-bot

@hugoShaka See the table below for backport results.

Branch Result
branch/v15 Create PR
branch/v16 Create PR
branch/v17 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants