-
Notifications
You must be signed in to change notification settings - Fork 53
Added Custom Volume/Volume Mount Support #554
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
Added Custom Volume/Volume Mount Support #554
Conversation
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.
Overall LGTM. One tiny comment
Conflict but then ready to come in I think |
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: KPostOffice 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 |
20476aa
into
project-codeflare:main
Issue link
RHOAIENG-8262
What changes have been made
Added a two new config variables
volumes
which is used for adding custom volumes on a Ray Cluster andvolume_mounts
which does the same but for VolumeMounts.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