-
Notifications
You must be signed in to change notification settings - Fork 664
[Feature] Support JobDeploymentStatus as the deletion condition #4262
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: master
Are you sure you want to change the base?
Changes from 8 commits
8c2132a
596ed83
f0766c4
6ced1b6
909fc40
378cc23
1c0cf0b
72ed628
aa8f8c1
1c6c28d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1216,8 +1216,14 @@ func (r *RayJobReconciler) handleDeletionRules(ctx context.Context, rayJob *rayv | |
|
|
||
| // Categorize all applicable and incomplete rules into "overdue" or "pending". | ||
| for _, rule := range rayJob.Spec.DeletionStrategy.DeletionRules { | ||
| // Skip rules that don't match the current job status. | ||
| if rule.Condition.JobStatus != rayJob.Status.JobStatus { | ||
| // Skip rules that don't match the current job status or job deployment status. | ||
| var match bool | ||
| if rule.Condition.JobStatus != nil { | ||
| match = *rule.Condition.JobStatus == rayJob.Status.JobStatus | ||
| } else if rule.Condition.JobDeploymentStatus != nil { | ||
| match = *rule.Condition.JobDeploymentStatus == rayJob.Status.JobDeploymentStatus | ||
| } | ||
| if !match { | ||
|
||
| continue | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
TTLSeconds is the time in seconds from when the JobStatus or JobDeploymentStatus