Define Virtualization Management table headers; They will be used in prod build

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-11-12 13:19:30 +01:00
parent 86461e1dbd
commit 6f9c92f16a
3 changed files with 44 additions and 11 deletions
+2 -11
View File
@@ -1,6 +1,7 @@
import { HCI, MANAGEMENT, CAPI } from '@shell/config/types';
import { HARVESTER, MULTI_CLUSTER } from '@shell/store/features';
import { STATE, NAME as NAME_COL, AGE, VERSION } from '@shell/config/table-headers';
import { MACHINE_POOLS } from '../config/table-headers';
import { allHash } from '@shell/utils/promise';
import { BLANK_CLUSTER } from '@shell/store/store-types.js';
@@ -8,16 +9,6 @@ export const PRODUCT_NAME = 'harvester-manager';
export const NAME = 'harvesterManager';
const MACHINE_POOLS = {
name: 'summary',
labelKey: 'tableHeaders.machines',
sort: false,
search: false,
value: 'nodes.length',
align: 'center',
width: 100,
};
const harvesterClustersLocation = {
name: 'c-cluster-product-resource',
params: {
@@ -56,7 +47,7 @@ export function init($plugin, store) {
name: 'harvesterVersion',
sort: 'harvesterVersion',
labelKey: 'harvesterManager.tableHeaders.harvesterVersion',
value: 'HarvesterVersion',
value: 'harvesterVersion',
getValue: (row) => row.harvesterVersion
},
{
+11
View File
@@ -77,3 +77,14 @@ export const VM_SCHEDULE_TYPE = {
sort: 'spec.vmbackup.type',
align: 'center',
};
// The MACHINE_POOLS column in Virtualization Management list page
export const MACHINE_POOLS = {
name: 'summary',
labelKey: 'tableHeaders.machines',
sort: false,
search: false,
value: 'nodes.length',
align: 'center',
width: 100,
};