-
Notifications
You must be signed in to change notification settings - Fork 548
[Feature][RayCluster]: Deprecate the RayCluster .Status.State field #2288
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
[Feature][RayCluster]: Deprecate the RayCluster .Status.State field #2288
Conversation
The field is replaced by the new .Status.Conditions field. Signed-off-by: Rueian <[email protected]>
Signed-off-by: Rueian <[email protected]>
@@ -1,3 +1,5 @@ | |||
//nolint:SA1019 |
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: Rueian <[email protected]>
@@ -121,6 +121,8 @@ type RayClusterStatus struct { | |||
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster | |||
// Important: Run "make" to regenerate code after modifying this file | |||
// Status reflects the status of the cluster | |||
// | |||
// Deprecated: the State field is replaced by the Conditions field. |
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.
Should we include the name of the conditions that replace the existing states here?
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.
Or will there be public docs on the new conditions? If so we can just link to that in a follow-up PR
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.
Sorry for the delay. I am still working on the linter issue. |
Signed-off-by: Rueian <[email protected]>
@rueian would you mind opening an issue to track the progress of the deprecation timeline of this field? (ex: add a comment, update doc, use condition instead of state in KubeRay codebase, delete the field ... etc) |
Why are these changes needed?
In the progress of ray-project/enhancements#54, we have added the new
.Status.Conditions
field to replace the single.Status.State
and we are planning not to make further changes to the.Status.State
anymore. So mark it deprecated to prevent future changes on the field.Related issue number
Checks