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 in-place upgrade proposal #30

Merged
merged 7 commits into from
Sep 12, 2024
Merged

Add in-place upgrade proposal #30

merged 7 commits into from
Sep 12, 2024

Conversation

berkayoz
Copy link
Member

Add in-place upgrade proposal

Copy link
Contributor

@bschimke95 bschimke95 left a comment

Choose a reason for hiding this comment

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

Great proposal @berkayoz
Did a first pass

docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
@berkayoz berkayoz requested a review from bschimke95 July 29, 2024 13:44
Copy link
Contributor

@bschimke95 bschimke95 left a comment

Choose a reason for hiding this comment

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

did another pass - looks great

docs/proposals/001-in-place-upgrades.md Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
Copy link
Contributor

@neoaggelos neoaggelos left a comment

Choose a reason for hiding this comment

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

This is great @berkayoz. Finished my first pass and left some comments for consideration

docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
* `k8sd.io/in-place-upgrade-failure` annotation on the `Machine` would be added/updated with the failure message
* `k8sd.io/in-place-upgrade-status` annotation on the `Machine` would be added/updated with `failed`

The reconciler should ignore the upgrade if `k8sd.io/in-place-upgrade-status` is already set to `in-progress` on the machine.
Copy link
Contributor

Choose a reason for hiding this comment

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

Also, it would probably be wise to have a configurable (?) parallelism for multiple machines at once. With rollout replace, machines are rotated one by one, we might want to mimic the same behaviour here (== if any other in-place upgrade is already in progress, just requeue the request).

docs/proposals/001-in-place-upgrades.md Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
@berkayoz berkayoz marked this pull request as ready for review September 9, 2024 08:57
@berkayoz berkayoz requested a review from a team as a code owner September 9, 2024 08:57
Copy link
Contributor

@HomayoonAlimohammadi HomayoonAlimohammadi left a comment

Choose a reason for hiding this comment

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

Thanks a lot @berkayoz! Left some minor comments.

docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Outdated Show resolved Hide resolved
docs/proposals/001-in-place-upgrades.md Show resolved Hide resolved
---------

Co-authored-by: Homayoon (Hue) Alimohammadi <[email protected]>
Copy link
Contributor

@bschimke95 bschimke95 left a comment

Choose a reason for hiding this comment

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

LGTM, great work

@HomayoonAlimohammadi
Copy link
Contributor

follow up: cluster-wide in-place upgrade PR

@berkayoz berkayoz merged commit accc0a1 into main Sep 12, 2024
2 checks passed
@berkayoz berkayoz deleted the KU-956/in-place-proposal branch September 12, 2024 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants