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

(cherry picked from commit 5aea476f64)

Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
mergify[bot]
2026-03-18 17:16:28 +08:00
committed by GitHub
co-authored by Andy Lee
parent dde58269d5
commit 0441c1f6e3
@@ -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() {