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.
This commit is contained in:
@@ -268,7 +268,11 @@ export default function useFormInitialValues() {
|
||||
const getClusterList = async (): Promise<Global.BaseOption<number>[]> => {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user