File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,14 @@ export const filterCluster = (
7979} ;
8080
8181export const clusterIsRayJob = ( cluster : ClusterRow ) : boolean => {
82- if ( ! cluster . labels ) {
83- return false ;
82+ // Prefer official KubeRay label to determine whether a RayCluster originates from a RayJob
83+ const labels = cluster . labels || { } ;
84+ const originatedFrom = labels [ "ray.io/originated-from-crd" ] ;
85+ if ( originatedFrom ?. toLowerCase ( ) === "rayjob" ) {
86+ return true ;
8487 }
8588
86- const jobType = cluster . labels [ "mlp.rbx.com/component" ] ;
87- return jobType === "rayjob" || jobType === "rayllmbatchinference" ;
89+ // Backward compatibility: support legacy custom labels if present
90+ const comp = labels [ "mlp.rbx.com/component" ] ;
91+ return comp === "rayjob" || comp === "rayllmbatchinference" ;
8892} ;
You can’t perform that action at this time.
0 commit comments