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

Generate meaningful name for custom notebook image #1435

Closed
DaoDaoNoCode opened this issue Jun 26, 2023 · 6 comments · Fixed by #1529
Closed

Generate meaningful name for custom notebook image #1435

DaoDaoNoCode opened this issue Jun 26, 2023 · 6 comments · Fixed by #1529
Assignees
Labels
feature/byon Bring Your Own Notebook Feature kind/story A user story for larger work. Should always be referenced by a "tracker" labelled issue. priority/high Important issue that needs to be resolved asap. Releases should not have too many of these.

Comments

@DaoDaoNoCode
Copy link
Member

DaoDaoNoCode commented Jun 26, 2023

Goal

Allow users to set a display name for the custom images they are importing and generate a meaningful k8s name

Dependency issue

Tracker: #1254

Itemized goals

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.

Aspects continued elsewhere

No response

Mocks

No mocks

@DaoDaoNoCode DaoDaoNoCode added priority/high Important issue that needs to be resolved asap. Releases should not have too many of these. feature/byon Bring Your Own Notebook Feature labels Jun 26, 2023
@DaoDaoNoCode DaoDaoNoCode changed the title Add name field for custom notebook image Generate meaning name for custom notebook image Jun 26, 2023
@DaoDaoNoCode DaoDaoNoCode changed the title Generate meaning name for custom notebook image Generate meaningful name for custom notebook image Jun 26, 2023
@shalberd
Copy link
Contributor

shalberd commented Jul 3, 2023

@DaoDaoNoCode additionally, if not done so yet, a meaningful name should also be set for imagestream metadata.annotations opendatahub.io/notebook-image-name, like here Is that what you mean by display name?

@lucferbux
Copy link
Contributor

@shalberd We tend to use this annotation for internal resources in the dashboard, both of them are to add descriptions and display names to render in the dashboard. I wasn't aware of that annotation in the notebook, so it's up to @DaoDaoNoCode to see which one fits best for our logic

@DaoDaoNoCode
Copy link
Member Author

@shalberd Hmm, interesting, I didn't know we have this annotation before. I guess if we want to also show the OOTB images in the future, we should adopt the same annotations. So I agree that we should use opendatahub.io/notebook-image-name and opendatahub.io/notebook-image-desc for the display name and description. So the order of finding the display name could be opendatahub.io/notebook-image-name || openshift.io/display-name || metadata.name

@andrewballantyne
Copy link
Member

@harshad16 do you have documentation behind these annotations?

@harshad16
Copy link
Member

We haven't clearly documented the annotation in the imagestream.
We will include it , tracker issue: opendatahub-io/notebooks#138

@andrewballantyne andrewballantyne added the kind/story A user story for larger work. Should always be referenced by a "tracker" labelled issue. label Jul 12, 2023
@DaoDaoNoCode DaoDaoNoCode self-assigned this Jul 12, 2023
@DaoDaoNoCode DaoDaoNoCode linked a pull request Jul 17, 2023 that will close this issue
7 tasks
@manosnoam
Copy link

Verified on RHODS 2.4:

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/byon Bring Your Own Notebook Feature kind/story A user story for larger work. Should always be referenced by a "tracker" labelled issue. priority/high Important issue that needs to be resolved asap. Releases should not have too many of these.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants