Skip to content

Conversation

@Arvindthiru
Copy link
Collaborator

@Arvindthiru Arvindthiru commented Oct 29, 2025

Description of your changes

This PR aims to add new API changes to allow users to set the following intent on an updateRun,

  • Started
  • Stopped
  • Abandoned

Adding a new spec field called state which is an enum
Adding another condition type for updateRun status called Abandoned

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Arvind Thirumurugan added 10 commits November 6, 2025 15:08
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>
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>
Arvind Thirumurugan added 6 commits November 7, 2025 12:14
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>
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Enum=NotStarted;Started;Stopped;Abandoned
// +kubebuilder:default=NotStarted
State State `json:"state"`
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Collaborator Author

@Arvindthiru Arvindthiru Nov 11, 2025

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

Arvind Thirumurugan added 2 commits November 11, 2025 15:11
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
Signed-off-by: Arvind Thirumurugan <arvindth@microsoft.com>
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.

3 participants