-
Notifications
You must be signed in to change notification settings - Fork 515
[apiserver][feat] add pagination to ListRayJobs #3285
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
[apiserver][feat] add pagination to ListRayJobs #3285
Conversation
@rueian PTAL |
I will also open issues to add pagination to |
Others LGTM. The test can be passed locally. |
Thanks @rueian ! |
cc @dentiny would you mind taking a look? Thanks! |
|
@@ -505,7 +572,7 @@ func createTestJob(t *testing.T, tCtx *End2EndTestingContext) *api.CreateRayJobR | |||
configMapName := tCtx.CreateConfigMap(t, map[string]string{ | |||
"counter_sample.py": ReadFileAsString(t, "resources/counter_sample.py"), | |||
"fail_fast.py": ReadFileAsString(t, "resources/fail_fast_sample.py"), | |||
}) | |||
}, tCtx.currentName) // set the name of the config map to the current name |
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.
Just curious, why do we need this change?
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.
Initially, I added this because create configmap with same name will get error, but I just changed to the same way that we specify jobname.
for i := 0; i < testJobNum; i++ {
tCtx.currentName = fmt.Sprintf("job%d", i)
tCtx.configMapName = fmt.Sprintf("job%d-cm", i)
testJobs = append(testJobs, createTestJob(t, tCtx))
}
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.
Thank you for addressing all the comments!
Signed-off-by: You-Cheng Lin <[email protected]>
Signed-off-by: You-Cheng Lin <[email protected]>
Signed-off-by: You-Cheng Lin <[email protected]>
Signed-off-by: You-Cheng Lin <[email protected]>
Signed-off-by: You-Cheng Lin <[email protected]>
Signed-off-by: You-Cheng Lin <[email protected]>
Signed-off-by: You-Cheng Lin <[email protected]>
Signed-off-by: You-Cheng Lin <[email protected]>
Signed-off-by: You-Cheng Lin <[email protected]>
425d9f9
to
7af2743
Compare
Refer to #3269
Why are these changes needed?
Related issue number
Closes #3269
Checks