refactor: remove using resourceName to determine is vGPU device (#741)

This commit is contained in:
Andy Lee
2026-03-18 10:35:47 +08:00
committed by GitHub
parent 519c7d9f1f
commit 5aea476f64
@@ -58,7 +58,7 @@ export default class PCIDevice extends SteveModel {
return false;
}
return !!this.metadata?.labels?.[HCI_ANNOTATIONS.PARENT_SRIOV_GPU] || this.status?.resourceName.includes('nvidia.com');
return !!this.metadata?.labels?.[HCI_ANNOTATIONS.PARENT_SRIOV_GPU];
}
get canYaml() {