mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-11-22 00:27:38 +08:00
refactor: remove using resourceName to determine is vGPU device (#741)
This commit is contained in:
1 parent
519c7d9f1f
commit
5aea476f64
1 file changed
+1
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user