diff --git a/frontend/src/pages/modelServing/screens/global/InferenceServiceTableRow.tsx b/frontend/src/pages/modelServing/screens/global/InferenceServiceTableRow.tsx index 76eb371eeb..765e235ec7 100644 --- a/frontend/src/pages/modelServing/screens/global/InferenceServiceTableRow.tsx +++ b/frontend/src/pages/modelServing/screens/global/InferenceServiceTableRow.tsx @@ -35,34 +35,24 @@ const InferenceServiceTableRow: React.FC = ({ isGlobal, columnNames, }) => { + const { projects } = React.useContext(ProjectsContext); + const project = projects.find(byName(inferenceService.metadata.namespace)) ?? null; + const isKServeNIMEnabled = project ? isProjectNIMSupported(project) : false; + const [modelMetricsEnabled] = useModelMetricsEnabled(); const kserveMetricsEnabled = useIsAreaAvailable(SupportedArea.K_SERVE_METRICS).status; const modelMesh = isModelMesh(inferenceService); const modelMeshMetricsSupported = modelMetricsEnabled && modelMesh; - const kserveMetricsSupported = modelMetricsEnabled && kserveMetricsEnabled && !modelMesh; + const kserveMetricsSupported = + modelMetricsEnabled && kserveMetricsEnabled && !modelMesh && !isKServeNIMEnabled; const displayName = getDisplayNameFromK8sResource(inferenceService); - const { projects } = React.useContext(ProjectsContext); - const project = projects.find(byName(inferenceService.metadata.namespace)) ?? null; - const isKServeNIMEnabled = project ? isProjectNIMSupported(project) : false; - return ( <> - {modelMeshMetricsSupported ? ( - - {displayName} - - ) : kserveMetricsSupported ? ( + {modelMeshMetricsSupported || kserveMetricsSupported ? ( = ({ const servingRuntimeName = editInfo?.inferenceServiceEditInfo?.spec.predictor.model?.runtime || - translateDisplayNameForK8s(createDataInferenceService.name); + translateDisplayNameForK8s(createDataInferenceService.name, { safeK8sPrefix: 'nim-' }); const nimPVCName = getUniqueId('nim-pvc');