import{fx as y,bD as p,bB as n,j as t,W as x,a as u,bG as c,ao as j,bl as w,ap as A,d as k,bH as m}from"./index-_eM6l4Nf.js";const r=({data:e,title:s,tooltip:l,isFetching:i})=>{let a,o;return Array.isArray(e)?(o=!0,a=(e??[]).join("")):(o=!1,a=[e??""].join("")),t.jsxs(u,{gap:"20px",flexDirection:"column",flex:"1",width:"100%",children:[t.jsxs(u,{children:[t.jsx(c,{children:s}),t.jsx(j,{position:w.right,mainText:l,children:t.jsx(A,{ml:"5px",size:"xs",icon:k.info_block})})]}),t.jsx(m,{disabled:!0,isMulti:o,value:e,options:[],placeholder:"",onChange:function(b){},preventAdding:!0,isLoading:i},a)]})},v=({schedulingConfig:e})=>{const{data:s}=y(),l=e!=null&&e.kubeNodeSelectorLabels?p([],e.kubeNodeSelectorLabels):[],i=e!=null&&e.kubeNodeAntiAffinityLabels?p([],e.kubeNodeAntiAffinityLabels):[],a=e!=null&&e.kubePriorityClass?n([],[e.kubePriorityClass]):[],o=e!=null&&e.kubeQueue?[e==null?void 0:e.kubeQueue.localQueue]:[],b=e!=null&&e.topology?[e.topology]:["None"];return t.jsx(x,{title:"Scheduler",width:"100%",children:t.jsxs(u,{width:"100%",gap:"20px",flexDirection:"column",children:[t.jsx(r,{data:l,title:"Node affinity",tooltip:"Job will run on a node with any of the following labels. Available Labels are configured by a Hopsworks Admin. If you require the use of a particular Label, not currently available in your project, contact a Hopsworks Admin."}),t.jsx(r,{data:i,title:"Node anti affinity",tooltip:"Job will run on a node that does not have any of the following labels. Available Labels are configured by a Hopsworks Admin. If you require the use of a particular Label, not currently available in your project, contact a Hopsworks Admin."}),t.jsx(r,{data:a,title:"Priority class",tooltip:"Job will run with this priority class. Available Priority Classes are configured by a Hopsworks Admin. If you require the use of a particular Priority Class, not currently available in your project, contact a Hopsworks Admin."}),s&&t.jsxs(t.Fragment,{children:[t.jsx(r,{data:o,title:"Queue",tooltip:"Job will run in this queue. Hopsworks queues use the Kueue queue abstraction. Available Queues are configured by a Kubernetes Admin. If you require the use of a particular Cluster Queue, ask the Kubernetes Admin to add access to it in your namespace in the form of a Local Queue."}),t.jsx(r,{data:b,title:"Topology",tooltip:"All pods will be scheduled within the selected topology unit."})]})]})})};export{v as K};
