Add USB devices page skeleton

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-10-23 17:01:13 +02:00
parent e8fbeccc72
commit ee963b7c1c
9 changed files with 281 additions and 8 deletions
+27
View File
@@ -419,6 +419,7 @@ export function init($plugin, store) {
HCI.PCI_DEVICE,
HCI.SR_IOVGPU_DEVICE,
HCI.VGPU_DEVICE,
HCI.USB_DEVICE,
HCI.ADD_ONS,
HCI.SECRET,
HCI.SETTING
@@ -752,6 +753,32 @@ export function init($plugin, store) {
]
});
virtualType({
labelKey: 'harvester.usb.label',
group: 'advanced',
weight: 11,
name: HCI.USB_DEVICE,
namespaced: false,
route: {
name: `${ PRODUCT_NAME }-c-cluster-resource`,
params: { resource: HCI.USB_DEVICE }
},
exact: false,
});
configureType(HCI.USB_DEVICE, {
isCreatable: false,
hiddenNamespaceGroupButton: true,
listGroups: [
{
value: 'node',
field: 'groupByNode',
hideColumn: 'node',
tooltipKey: 'resourceTable.groupBy.node'
}
]
});
configureType(HCI.ADD_ONS, {
isCreatable: false,
isRemovable: false,
+1
View File
@@ -68,4 +68,5 @@ export const ADD_ONS = {
RANCHER_LOGGING: 'rancher-logging',
RANCHER_MONITORING: 'rancher-monitoring',
VM_IMPORT_CONTROLLER: 'vm-import-controller',
USB_DEVICE_CONTROLLER: 'usbdevices-controller',
};