From 76f228bfe76e148dac7ae2833d704f6f863870b2 Mon Sep 17 00:00:00 2001 From: gitlawr Date: Fri, 5 Jun 2026 18:14:43 +0800 Subject: [PATCH] fix(llmodels): hide GPU-service clusters from deploy picker The deploy form's cluster dropdown fetched every visible cluster, so clusters configured for GPU-service (k8s_options.gpu_instance_options set) showed up as deployable targets even though deployments cannot run on them. Pass gpu_instance_enabled=false on the cluster-list query so the backend returns only model-deployment clusters. GPU-instance creation does not pick a cluster directly (it is derived from the instance type), so no symmetric change is needed there. --- src/pages/llmodels/hooks/use-form-initial-values.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/llmodels/hooks/use-form-initial-values.ts b/src/pages/llmodels/hooks/use-form-initial-values.ts index d5b97b02..805e1b49 100644 --- a/src/pages/llmodels/hooks/use-form-initial-values.ts +++ b/src/pages/llmodels/hooks/use-form-initial-values.ts @@ -268,7 +268,11 @@ export default function useFormInitialValues() { const getClusterList = async (): Promise[]> => { try { const response = await queryClusterList({ - page: -1 + page: -1, + // Exclude clusters that opt in to GPU-instance handling + // (k8s_options.gpu_instance_options set) — those are for the + // GPU-service flow, not model deployment. + gpu_instance_enabled: false }); const list = response.items.map((item) => ({ label: item.name,