diff --git a/pkg/harvester/components/FilterBySriov.vue b/pkg/harvester/components/FilterBySriov.vue index 2ff3d26b..a52bc610 100644 --- a/pkg/harvester/components/FilterBySriov.vue +++ b/pkg/harvester/components/FilterBySriov.vue @@ -29,8 +29,6 @@ export default { required: true, }, - - }, data() { diff --git a/pkg/harvester/config/feature-flags.js b/pkg/harvester/config/feature-flags.js index f57d4558..ed56b5f0 100644 --- a/pkg/harvester/config/feature-flags.js +++ b/pkg/harvester/config/feature-flags.js @@ -61,7 +61,8 @@ const FEATURE_FLAGS = { 'v1.8.0': [ 'hotplugCdRom', 'supportBundleFileNameSetting', - 'clusterRegistrationTLSVerify' + 'clusterRegistrationTLSVerify', + 'vGPUAsPCIDevice', ], }; diff --git a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/DeviceList.vue b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/DeviceList.vue index 16afa2ed..293d51dc 100644 --- a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/DeviceList.vue +++ b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/DeviceList.vue @@ -109,10 +109,12 @@ export default { computed: { allSriovs() { const inStore = this.$store.getters['currentProduct'].inStore; + return this.$store.getters[`${ inStore }/all`](HCI.SR_IOV) || []; }, allSriovGPUs() { const inStore = this.$store.getters['currentProduct'].inStore; + return this.$store.getters[`${ inStore }/all`](HCI.SR_IOVGPU_DEVICE) || []; }, parentSriovOptions() { diff --git a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/index.vue b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/index.vue index e3534f89..254643fb 100644 --- a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/index.vue +++ b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/index.vue @@ -8,6 +8,7 @@ import { set } from '@shell/utils/object'; import { HCI } from '../../../types'; import DeviceList from './DeviceList'; import CompatibilityMatrix from '../CompatibilityMatrix'; +import MessageLink from '@shell/components/MessageLink'; export default { name: 'VirtualMachinePCIDevices', @@ -15,7 +16,8 @@ export default { LabeledSelect, DeviceList, CompatibilityMatrix, - Banner + Banner, + MessageLink }, props: { mode: { @@ -138,6 +140,13 @@ export default { return inUse; }, + toVGpuDevicesPage() { + return { + name: 'harvester-c-cluster-resource', + params: { cluster: this.$store.getters['clusterId'], resource: HCI.VGPU_DEVICE }, + }; + }, + devicesByNode() { return this.enabledDevices?.reduce((acc, device) => { const nodeName = device.status?.nodeName; @@ -232,7 +241,12 @@ export default {