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

Move autoupdate code in proxy to make more sense #49484

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

hugoShaka
Copy link
Contributor

Splitting up #49380 to make it more palatable.

This PR moves code around and rename functions to reflect the difference between RFD 109 and RFD 184 autoupdates. No logic changed in this PR.

The tool autoupdate got sucked into RFD184 this as they share the same API, I did not suffix their functions with "184" though.

@hugoShaka hugoShaka added the no-changelog Indicates that a PR does not require a changelog entry label Nov 26, 2024
@marcoandredinis marcoandredinis removed their request for review November 27, 2024 09:03
@@ -1073,7 +1070,7 @@ func (h *Handler) bindDefaultEndpoints() {

// Implements the agent version server.
// Channel can contain "/", hence the use of a catch-all parameter
h.GET("/webapi/automaticupgrades/channel/*request", h.WithUnauthenticatedHighLimiter(h.automaticUpgrades))
h.GET("/webapi/automaticupgrades/channel/*request", h.WithUnauthenticatedHighLimiter(h.automaticUpgrades109))
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we refer to this a legacy automatic upgrades instead of referencing the RFD in code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't really like calling them legacy because some parts of the RFD109 will still be used as a fallback for RFD184, and the RFD109 APIs will soon be able to tell to update based on RFD184 configuration.

So you can have legacy updaters using legacy APIs to update according to the new schedule, and new updaters using the new API to update according to the legacy schedule.

As both systems will share a common update logic I don't see channels as legacy, just as a different API service the same content.

The interoperability logic will be introduced in #49380

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@hugoShaka hugoShaka enabled auto-merge November 27, 2024 19:06
@hugoShaka hugoShaka added this pull request to the merge queue Nov 27, 2024
Merged via the queue into master with commit fb26137 Nov 27, 2024
40 checks passed
@hugoShaka hugoShaka deleted the hugo/split-autoupdate-by-rfd-in-proxy branch November 27, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants