-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: cache amalthea sessions #1983
Conversation
This change is part of the following stack: Change managed by git-spice. |
8835949
to
def99a7
Compare
3e9cb0e
to
7dc4049
Compare
def99a7
to
b13ad8c
Compare
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.
Code looks good. Small suggestions here:
k8s-watcher/server_routes.go
Outdated
s.router.HandlerFunc("GET", "/servers", s.jsGetAll) | ||
s.router.HandlerFunc("GET", "/servers/:serverID", s.jsGetOne) | ||
s.router.HandlerFunc("GET", "/users/:userID/servers", s.jsUserID) | ||
s.router.HandlerFunc("GET", "/users/:userID/servers/:serverID", s.jsUserIDServerID) | ||
s.router.HandlerFunc("GET", "/sessions", s.asGetAll) | ||
s.router.HandlerFunc("GET", "/sessions/:serverID", s.asGetOne) | ||
s.router.HandlerFunc("GET", "/users/:userID/sessions", s.asUserID) | ||
s.router.HandlerFunc("GET", "/users/:userID/sessions/:serverID", s.asUserIDServerID) |
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.
Note: the routing scheme may be confusing 😅 .
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.
I agree. But I was thinking that we will purge the old notebooks endpoints soon and after that it will be better. I can add a comment to explain the difference between server/sessions.
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.
"Soon" will not be soon. Renku 1.0 will have to be supported for a long time still.
Adapts the k8s watcher to cache the new amalthea sessions CRD.
5cfdf84
to
5eba8e4
Compare
Co-authored-by: Flora Thiebaut <[email protected]>
5eba8e4
to
81dd32d
Compare
You can access the deployment of this PR at https://renku-ci-nb-1983.dev.renku.ch |
This PR needed an update to the RBAC for the k8s watcher and notebooks. This has been done already and released. So the PR can be merged. This is the commit that added RBAC: SwissDataScienceCenter/renku@dfbb191 It has been released in renku 0.58.0 |
Adapts the k8s watcher to cache the new amalthea sessions CRD.
/deploy