fix: register k8s cluster should selected nvidia vendor by default

This commit is contained in:
Yuxing Deng
2026-06-11 23:55:40 +08:00
parent b985dcee63
commit 7b18a92388
@@ -93,9 +93,8 @@ const SelectVendor: React.FC<AddWorkerStepProps> = ({ disabled }) => {
};
useEffect(() => {
// K8s clusters allow selecting none (CPU-only workers), so skip default
// selection. Other providers still default to NVIDIA.
if (multiCapable) return;
// Default to NVIDIA for every provider, including K8s. Users can still
// deselect it (e.g. for CPU-only workers) or add more vendors on K8s.
handleSelect(GPUDriverMap.NVIDIA, {
label: 'NVIDIA',
hiddenTitle: true,