-
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>
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>
| // +kubebuilder:validation:Optional | ||
| // +kubebuilder:validation:Enum=NotStarted;Started;Stopped;Abandoned | ||
| // +kubebuilder:default=NotStarted | ||
| State State `json:"state"` |
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.
we need to guard against a few invalid state transition like start -> NotStarted. Abandoned->* it seems CEL can do that?
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.
we also need to block any run that start with other than "NotStarted" state. I am not even sure if this is something that user should set. It seems like every run always starts with this state so there is no need for user to specify this state ever.
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.
as the previous vesion shows, NotStarted is more like a status than a state.
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.
Other alternative suggested by AI Pending or Ready.
But AI seems to think NotStarted already offers Explicit Intent Declaration from the user
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