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

autoupdate: implement time-based strategy #49736

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

hugoShaka
Copy link
Contributor

@hugoShaka hugoShaka commented Dec 3, 2024

Part of: RFD-184

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

Requires: #49735

This PR imeplements the time-based rollout strategy.

@hugoShaka hugoShaka requested review from sclevine and vapopov December 3, 2024 23:02
@hugoShaka hugoShaka force-pushed the hugo/rollout-timebased-strategy branch from ff167f9 to fa9819b Compare December 3, 2024 23:11
@hugoShaka hugoShaka force-pushed the hugo/rollout-progress-common branch from 8c41768 to 06d909d Compare December 6, 2024 00:05
@hugoShaka hugoShaka force-pushed the hugo/rollout-timebased-strategy branch from fa9819b to f4901f6 Compare December 6, 2024 00:06
@hugoShaka hugoShaka force-pushed the hugo/rollout-progress-common branch from 06d909d to 296b736 Compare December 6, 2024 21:29
Base automatically changed from hugo/rollout-progress-common to master December 6, 2024 22:19
@hugoShaka hugoShaka force-pushed the hugo/rollout-timebased-strategy branch from f4901f6 to 6d0f8cb Compare December 9, 2024 18:33
@hugoShaka hugoShaka marked this pull request as ready for review December 9, 2024 18:34
@github-actions github-actions bot requested review from mvbrock and ryanclark December 9, 2024 18:34
@hugoShaka hugoShaka added the no-changelog Indicates that a PR does not require a changelog entry label Dec 9, 2024
func (h *timeBasedStrategy) progressRollout(ctx context.Context, groups []*autoupdate.AutoUpdateAgentRolloutStatusGroup) error {
now := h.clock.Now()
// We always process every group regardless of the order.
var errors []error
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
var errors []error
var errs []error

nit: conflicts with errors package, so looks a bit confusing below

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from mvbrock December 11, 2024 23:37
This commit implements the time-based rollout strategy describen in
RFD 184. The autoupdate_agent_rollout controller will make the groups
active based on their start days, start hour, and maintenance duration.
Once the maintenance window is over, the group becomes DONE.
In the DONE state, new agents will instalkl the target version but
existing agents will no longer be told to actively update.
@hugoShaka hugoShaka force-pushed the hugo/rollout-timebased-strategy branch from 6d0f8cb to d2e95a8 Compare December 13, 2024 15:20
@hugoShaka hugoShaka enabled auto-merge December 13, 2024 15:20
@hugoShaka hugoShaka added this pull request to the merge queue Dec 13, 2024
Merged via the queue into master with commit 2ee7a89 Dec 13, 2024
40 checks passed
@hugoShaka hugoShaka deleted the hugo/rollout-timebased-strategy branch December 13, 2024 15:58
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/md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants