-
Notifications
You must be signed in to change notification settings - Fork 38
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
Populate Elyra runtime images configMap from runtime images imagestream manifests and mounts it on the Notebook CR #513
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold |
1ad60c1
to
3402caf
Compare
3402caf
to
9dc2dd8
Compare
…watch/update a new ConfigMap the `pipeline-runtime-images` for runtime images and mount it as volume on the notebook when is getting created Move ConfigMapName, mountPath and volumeName as global vars Add DevFlag SET_RUNTIMES_CM to enable/diable the feature Add test cases for the new configMap configuration Remove devflag Revert changes on makefile
…t the end of the run This way we should see what the controller was logging in case the test fails.
a5bf7ef
to
db27716
Compare
Just rebased the PR, sorry Jiri for ping you again for your review :P |
/lgtm I'm going to trust you on this being just a rebase don't see anything suspicious normally I'd check https://github.com/opendatahub-io/kubeflow/compare/a5bf7efc2d06ba74dd6f5b79e06a0e92ee1af3fe..db27716ce20f463529ebeef0c50cddfbca1b7779 but there is 250k lines changed since PR was opened ;{ |
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.
Great work 🎉
Left one question.
Testing the following scenarios:
- On upgrade, existing notebook are not touched: ✔️
- Existing notebook on restart, are not attached with rutimes: ✔️
- New notebook on creation are attached with runtimes: ✔️
- New notebook with old image are attached with runtimes, however they are not used by elyra and stay in separate dir: ✔️
- Creation of imagestream in ods-application, updates configamp: ✔️
- edit of configmap in username , reconciles the configmap: ✔️
Pending the testing, i need to check these in jupyter tile
(due to shortage of time , couldn't check, will check soon and provide final review)
components/odh-notebook-controller/controllers/notebook_runtime.go
Outdated
Show resolved
Hide resolved
New changes are detected. LGTM label has been removed. |
Related to: https://issues.redhat.com/browse/RHOAIENG-19051
Related PRs for this workload:
New set of runtime ImageStreams: opendatahub-io/notebooks#930
Unwire .json files from the Datascience Notebook: opendatahub-io/notebooks#909
Description
This PR add a new notebook_runtime script where includes the logic to create/watch/update a new ConfigMap the
pipeline-runtime-images
from the runtime images imagesStreams (related PR) and mount it as volume with the name/opt/app-root/pipeline-runtimes/
on the notebook CR when is getting created.NOTE: We don't make a use of devFlag for this feature, as it doesn't seem to have any issue with Applications -> Embeded-> JupyterLab spinup notebook
How Has This Been Tested?
Import the
quay.io/rh_ee_atheodor/workbench-images@sha256:f2bc105afab97575007a5743e39cc4c045fa276ba8612b6a8241758d48711913
notebook (Includes the changes from this PR) This is a notebook without the .json runtimes in it.Spin up this

Custom Datascience
notebook via UIClick on the left side menu and click this icon.
You should see the runtimes mounted like below:

On the Back-end side:
4. Inspect the logs on the odh-notebook-controller to find the related logs on the configMap creation and the mounting, like below.
Check on the notebook pod statefullset for the config map, press on it to inspect also the data from this configMap

Check as well on the notebook CR to evaluate the mounting, as is on the bellow image:

Merge criteria: