Skip to content
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

[Tracker] Custom Notebook (BYON) Improvements - Part 1 #1254

Closed
andrewballantyne opened this issue May 17, 2023 · 6 comments · Fixed by #1666 or #1997
Closed

[Tracker] Custom Notebook (BYON) Improvements - Part 1 #1254

andrewballantyne opened this issue May 17, 2023 · 6 comments · Fixed by #1666 or #1997
Assignees
Labels
feature/adminui Admin UI Feature feature/byon Bring Your Own Notebook Feature rhods-1.35 rhods-2.4 tracker Non-completable ticket; used for tracking work - akin to a Jira Epic

Comments

@andrewballantyne
Copy link
Member

andrewballantyne commented May 17, 2023

Description

General improvements to the Custom Notebooks Admin UI (part 1 is the "low hanging fruit").

Part 2 continues this effort

Target Branch

f/byon

Requirements

Update all text items and field labels as defined in the UX
After editing an image, the 'enabled' state is automatically set to disabled. Any edits should not change the state - if enabled prior to edits, it should remain enabled after edits and if disabled prior to edits, it should remain disabled after edits.
When adding custom images, the image stream names are not intuitive - eg. 'byon-xxxx'. This makes it hard to differentiate across custom images. Would like the name to be more intuitive and not include 'byon' prefix.

  • Idea is to have an object (Kubernetes) name and display name for each custom NB image. The image stream would be "Custom: (Kubernetes name)".
  • Users should be able to access the Kubernetes name from the custom NB images admin UI, so they can find it in the list of image streams.
  • Kubernetes name must be unique (for custom NB images); display name does not need to be unique. Display name is what users will see in the UI for selecting images.
  • When adding a URL for image location field, remove preceding and trailing white spaces.

Itemized UX Issues

Itemized Dev Issues

Related artifacts

UX Mocks: https://www.sketch.com/s/c8183f89-76f5-4a23-b885-a9e404a61414/p/C1443B6E-E3F9-4136-BBC2-994F4D7AF7D7

@andrewballantyne andrewballantyne added tracker Non-completable ticket; used for tracking work - akin to a Jira Epic feature/cnbi Custom NoteBook Images Feature feature/byon Bring Your Own Notebook Feature labels May 17, 2023
@andrewballantyne andrewballantyne self-assigned this May 17, 2023
@andrewballantyne andrewballantyne changed the title Custom Notebook (CNBi) Improvements - Part 1 Custom Notebook (BYON) Improvements - Part 1 May 18, 2023
@andrewballantyne andrewballantyne added feature/adminui Admin UI Feature and removed feature/cnbi Custom NoteBook Images Feature labels May 18, 2023
@andrewballantyne andrewballantyne removed their assignment May 19, 2023
@lucferbux lucferbux linked a pull request Aug 11, 2023 that will close this issue
7 tasks
@andrewballantyne andrewballantyne changed the title Custom Notebook (BYON) Improvements - Part 1 [Tracker] Custom Notebook (BYON) Improvements - Part 1 Oct 19, 2023
@vconzola
Copy link

LGTM.

@shalberd
Copy link
Contributor

shalberd commented Oct 20, 2023

Does byon always use spec.tags[tagname].referencePolicy.type: Source in assembling the imagestream yaml, thereby always pulling from the original url location, or is there spec.tags[tagname].referencePolicy.type: Local for saving the externally referenced image in the openshift internal registry, if present?

Also, if referencePolicy is set to type: Local (for openshift internal registry reference after import), are there plans to add fields in OdhDashboardConfig for authenticated external docker registry access (think i.e. a corporate Artifactory or Harbor with pull/push authentication enabled)? Such credentials, in the form of either a reference to an already existing image pull secret or constructing that image pull secret from username, password, and repo base path, in the admin section, would be very useful for authenticated registry access. Furthermore, the name of the image pull secret could be used later in the assembled Notebook CR.

Just some food for thought for later on.

@andrewballantyne
Copy link
Member Author

@shalberd this is already done & just working through final verification before we move it to stable. No major changes to supporting external registries (IIUC) will happen at this point. FWIW, we use lookupPolicy.local on the imagestream, but I don't see extra referencePolicy info on the tags -- could be default? (code).

Your comment seems related to your PR800 effort, and if you'd like to suggest future enhancements to our infra outside of what you're doing in PR800, Phase 2 is not that far off. We will be supporting things like OOTB images turning off.

If I am mistaking things again with respect to the image stuff or what you're saying, please correct me. Happy to work with you to make this more robust.

@shalberd
Copy link
Contributor

shalberd commented Oct 20, 2023

FWIW, we use lookupPolicy.local on the imagestream, but I don't see extra referencePolicy info on the tags

Thank you for the code where the imagestream is assembled. Yes, indeed, the default tag referencePolicy is Source:

https://docs.openshift.com/container-platform/4.12/rest_api/image_apis/imagestreamtag-image-openshift-io-v1.html#tag-referencepolicy

  • The default value is Source, indicating the original location of the image should be used (if imported).

  • The user may also specify Local, indicating that the pull spec should point to the integrated container image registry and leverage the registry’s ability to proxy the pull to an upstream registry.

As you see, the current way that the dashboard assembleNotebook logic fills in the image-field value for the container is contrary to the behavior decribed in the bullet points and the link.

Thus, work in dashboard PR 800 and kubeflow notebook controller PR 133 will lay a good groundwork for further improvements to image stream and BYON image handling. Agreed, phase 2.

@jedemo
Copy link

jedemo commented Oct 20, 2023

Looks good to me

@manosnoam
Copy link
Contributor

FYI, the Doc Issue is: https://issues.redhat.com/browse/RHODS-12590

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/adminui Admin UI Feature feature/byon Bring Your Own Notebook Feature rhods-1.35 rhods-2.4 tracker Non-completable ticket; used for tracking work - akin to a Jira Epic
Projects
Status: Done
Archived in project
Status: Dashboard
7 participants