-
Notifications
You must be signed in to change notification settings - Fork 178
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
Add storageClassName field to dashboard config for notebook controller #1055
Add storageClassName field to dashboard config for notebook controller #1055
Conversation
Yes, that is very useful, as StorageClass default is not always set at a cluster-level and having the customizability / expressive functionality is a great idea. |
@shalberd This is also just our first pass at it -- this is to cover a gap we caused in the JupyterHub => Jupyter transition. Projects view will get a more robust version with admin options and everything at some point in the future (date TBD -- but you can keep your eyes on the ODH 2023 Goals if you want to see when we set things up). Glad to hear you're also interested in storage classes -- we have had a lot of feedback about the desired nature to get more control in this area. |
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. lgtm
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.
We missed updating all the types for Dashboard (silly dupes between backend and frontend).
This looks good and operates as expected -- only on create of PVC, modifications are not allowed after the fact.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewballantyne, Gkrumbach07 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@andrewballantyne the PVC is created with the correct storage class name in it, which is ok. @DaoDaoNoCode
Events for that PVC show:
This error then leads to the notebook not being started correctly from Jupyter tile. |
Wow, impressive catch @shalberd -- how the heck did we make it this far from that code inception without seeing that. Yeah, 20 is 20 bytes. It's our code constant. You can work around this by using the OdhDashboardConfig and specifying a PVC size (or using the admin screen to set one). Have you logged a bug about this? If not, I'd be happy to. |
@andrewballantyne yes, I created a bug for that at #1333 Workaround done as you described. I suggested, cause that size is always needed, adding it in the code that creates a new odhdashboardconfig when none is present yet. |
Closes #1029
Description
Add
storageClassName
field undernotebookController
settings in dashboard config CR, which allows the user to specify thestorageClass
they want to use for the PVC of the Jupyter notebook they spawned with the notebook controller.How Has This Been Tested?
storageClassName
as the storage class you want to set under thenotebookController
fieldstorageClassName
in the dashboard config CR and wait for another 2 mins, and delete the PVCTest Impact
Tests are not applicable because there is no way for us to check the PVC storage class in the dashboard, you can only manually check it on the OpenShift console.
Request review criteria: