-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle kserve in global model serving page
- Loading branch information
1 parent
5c15171
commit ce8c1ed
Showing
11 changed files
with
141 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
frontend/src/pages/modelServing/screens/global/InferenceServiceModel.tsx
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
frontend/src/pages/modelServing/screens/global/InferenceServiceServingRuntime.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as React from 'react'; | ||
import { ServingRuntimeKind } from '~/k8sTypes'; | ||
import { getDisplayNameFromServingRuntimeTemplate } from '~/pages/modelServing/customServingRuntimes/utils'; | ||
|
||
type Props = { | ||
servingRuntime?: ServingRuntimeKind; | ||
}; | ||
|
||
const InferenceServiceServingRuntime: React.FC<Props> = ({ servingRuntime }) => ( | ||
<>{servingRuntime ? getDisplayNameFromServingRuntimeTemplate(servingRuntime) : 'Unknown'}</> | ||
); | ||
|
||
export default InferenceServiceServingRuntime; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...d/src/pages/modelServing/screens/global/__tests__/InferenceServiceServingRuntime.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import InferenceServiceServingRuntime from '~/pages/modelServing/screens/global/InferenceServiceServingRuntime'; | ||
import { mockServingRuntimeK8sResource } from '~/__mocks__/mockServingRuntimeK8sResource'; | ||
|
||
describe('InferenceServiceServingRuntime', () => { | ||
it('should handle undefined serving runtime', () => { | ||
const wrapper = render(<InferenceServiceServingRuntime />); | ||
expect(wrapper.container.textContent).toBe('Unknown'); | ||
}); | ||
|
||
it('should display serving runtime name', () => { | ||
const mockServingRuntime = mockServingRuntimeK8sResource({}); | ||
const wrapper = render(<InferenceServiceServingRuntime servingRuntime={mockServingRuntime} />); | ||
expect(wrapper.container.textContent).toBe('OpenVINO Serving Runtime (Supports GPUs)'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters