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

[Feature Request]: Validate Serving Runtime when creating Custom Serving Runtime #1353

Closed
lucferbux opened this issue Jun 9, 2023 · 5 comments · Fixed by #1936
Closed

[Feature Request]: Validate Serving Runtime when creating Custom Serving Runtime #1353

lucferbux opened this issue Jun 9, 2023 · 5 comments · Fixed by #1936
Assignees
Labels
feature/model-serving Model Serving Feature kind/story A user story for larger work. Should always be referenced by a "tracker" labelled issue. priority/normal An issue with the product; fix when possible

Comments

@lucferbux
Copy link
Contributor

Feature description

Currently we are validating the Serving Runtime once that we try to deploy it:

export const isServingRuntimeKind = (obj: K8sResourceCommon): obj is ServingRuntimeKind =>
  obj.kind === 'ServingRuntime' &&
  obj.spec?.builtInAdapter !== undefined &&
  obj.spec?.containers !== undefined &&
  obj.spec?.supportedModelFormats !== undefined;

But this might be misleading as you can already select it, so when it fails it gives you a misleading creation message.

We should move this validation into the ServingRuntime creation flow.

Describe alternatives you've considered

No response

Anything else?

No response

@lucferbux lucferbux added kind/enhancement New functionality request (existing augments or new additions) untriaged Indicates the newly create issue has not been triaged yet labels Jun 9, 2023
@github-project-automation github-project-automation bot moved this to Needs prioritization in ODH Dashboard Planning Jun 9, 2023
@bdattoma
Copy link

bdattoma commented Jun 9, 2023

since the number of mandatory fields for the validation is finite, could we report in the error message which are the invalid fields?

@lucferbux
Copy link
Contributor Author

@Jooho @Xaenalt can we do a run down of the mndatory fields? I would love to hav your opinion/validation here to ensure we are casting a valid object!

@lucferbux lucferbux added priority/normal An issue with the product; fix when possible feature/model-serving Model Serving Feature and removed untriaged Indicates the newly create issue has not been triaged yet labels Jun 12, 2023
@lucferbux lucferbux moved this from Needs prioritization to To do in ODH Dashboard Planning Jun 12, 2023
@Jooho
Copy link

Jooho commented Jun 12, 2023

@lucferbux I took at this source and I think the 3 fields can be mndatory.

  • container
  • supportedModelFormats
  • kind

builtInAdapter can be omitted when it is using a default puller like Watson runtime. @Xaenalt WDYT?

I agree with @bdattoma , it would be a good idea to show the error message when required fields are not specified.

@lucferbux
Copy link
Contributor Author

lucferbux commented Jun 13, 2023

I agree with @bdattoma , it would be a good idea to show the error message when required fields are not specified.

Yes, that's right, I'm gonna update the error message to reflect that one of the required fields is not present. Doing that in #1352

@Xaenalt
Copy link
Member

Xaenalt commented Jun 13, 2023

Yeah, those fields should be the mandatory ones, I don't think we'd have a case where you could omit supportedModelFormats

@DaoDaoNoCode DaoDaoNoCode self-assigned this Oct 3, 2023
@DaoDaoNoCode DaoDaoNoCode moved this from Dev To do to Dev In progress in ODH Dashboard Planning Oct 3, 2023
@andrewballantyne andrewballantyne added kind/story A user story for larger work. Should always be referenced by a "tracker" labelled issue. and removed kind/enhancement New functionality request (existing augments or new additions) labels Oct 5, 2023
@lucferbux lucferbux linked a pull request Oct 10, 2023 that will close this issue
7 tasks
@github-project-automation github-project-automation bot moved this from Dev In progress to Done in ODH Dashboard Planning Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/model-serving Model Serving Feature kind/story A user story for larger work. Should always be referenced by a "tracker" labelled issue. priority/normal An issue with the product; fix when possible
Projects
Status: Done
Status: No status
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants