-
Notifications
You must be signed in to change notification settings - Fork 44
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 support for custom Volumes/Volume Mounts #772
Add support for custom Volumes/Volume Mounts #772
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #772 +/- ##
==========================================
+ Coverage 90.33% 90.40% +0.07%
==========================================
Files 23 23
Lines 1345 1355 +10
==========================================
+ Hits 1215 1225 +10
Misses 130 130 ☔ View full report in Codecov by Sentry. |
a12c29f
to
793965c
Compare
Target 2.17 |
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.
Once small comment. Should simplify the code a bit, otherwise this LGTM
793965c
to
1c74f94
Compare
1c74f94
to
6257822
Compare
6257822
to
2d479cf
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.
/lgtm !
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: astefanutti, ChristianZaccaria 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 |
051ee3c
into
project-codeflare:main
Issue link
What changes have been made
Verification steps
Setup
Notebook server ODH/RHOAI/Local
git clone https://github.com/project-codeflare/codeflare-sdk.git
poetry build
- install if needed (pip install poetry
)pip install --force-reinstall dist/codeflare_sdk-0.0.0.dev0-py3-none-any.whl
Testing
The
volumes
andvolume_mounts
config parameters are both lists that take theV1Volume
andV1VolumeMount
objects respectively.Below I have given some examples for testing purposes.
Volumes/Volume Mounts configuration
ClusterConfiguration
Test Config Map
Test Secret
test-secret
Verify
The volumes & volume mounts should be added to your worker and head pods.
You can exec into your pod and check that the emptyDir, Config Map volume and Secret Volume were mounted correctly
Checks