-
Notifications
You must be signed in to change notification settings - Fork 19
interface: start/stop API for updateRun #314
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
.github/.copilot/breadcrumbs/2025-10-29-1500-start-stop-updaterun-api.md
Outdated
Show resolved
Hide resolved
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
e48206a to
96621fc
Compare
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
|
|
||
| const ( | ||
| // StateNotStarted indicates the update run has been initialized but execution has not started. | ||
| // This is the default state after initialization completes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The state here is the "desired" state set by the user but the whole description makes this look like a status instead of spec.
| PlacementName: crpName, | ||
| ResourceSnapshotIndex: resourceSnapshotIndex, | ||
| StagedUpdateStrategyName: strategyName, | ||
| State: placementv1beta1.StateStarted, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't the default be "stateNotStarted"? It's the default so we don't need to add it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>

Description of your changes
This PR aims to add new API changes to allow users to set the following intent on an updateRun,
Adding a new spec field called state which is an enum
Adding another condition type for updateRun status called Abandoned
Fixes #
I have:
make reviewableto ensure this PR is ready for review.How has this code been tested
Special notes for your reviewer