mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 13:16:05 +08:00
Latest changes from Harvester master - a537c1ae38eb7030542ac371f24ae3336cd9d422
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -398,6 +398,7 @@ export function init($plugin, store) {
|
||||
|
||||
basicType(
|
||||
[
|
||||
HCI.SCHEDULE_VM_BACKUP,
|
||||
HCI.BACKUP,
|
||||
HCI.SNAPSHOT,
|
||||
HCI.VM_SNAPSHOT,
|
||||
@@ -445,6 +446,20 @@ export function init($plugin, store) {
|
||||
exact: false
|
||||
});
|
||||
|
||||
configureType(HCI.SCHEDULE_VM_BACKUP, { showListMasthead: false, showConfigView: false });
|
||||
virtualType({
|
||||
labelKey: 'harvester.schedule.label',
|
||||
name: HCI.SCHEDULE_VM_BACKUP,
|
||||
namespaced: true,
|
||||
weight: 201,
|
||||
route: {
|
||||
name: `${ PRODUCT_NAME }-c-cluster-resource`,
|
||||
params: { resource: HCI.SCHEDULE_VM_BACKUP }
|
||||
},
|
||||
exact: false,
|
||||
ifHaveType: HCI.SCHEDULE_VM_BACKUP,
|
||||
});
|
||||
|
||||
configureType(HCI.BACKUP, { showListMasthead: false, showConfigView: false });
|
||||
virtualType({
|
||||
labelKey: 'harvester.backup.label',
|
||||
|
||||
@@ -53,4 +53,5 @@ export const HCI = {
|
||||
NODE_CPU_MANAGER_UPDATE_STATUS: 'harvesterhci.io/cpu-manager-update-status',
|
||||
CPU_MANAGER: 'cpumanager',
|
||||
VM_DEVICE_ALLOCATION_DETAILS: 'harvesterhci.io/deviceAllocationDetails',
|
||||
SVM_BACKUP_ID: 'harvesterhci.io/svmbackupId',
|
||||
};
|
||||
|
||||
@@ -40,3 +40,40 @@ export const SNAPSHOT_TARGET_VOLUME = {
|
||||
sort: 'spec.source.persistentVolumeClaimName',
|
||||
formatter: 'SnapshotTargetVolume',
|
||||
};
|
||||
|
||||
// The column of cron expression volume on VM schedules list page
|
||||
export const VM_SCHEDULE_CRON = {
|
||||
name: 'CronExpression',
|
||||
labelKey: 'harvester.tableHeaders.cronExpression',
|
||||
value: 'spec.cron',
|
||||
align: 'center',
|
||||
sort: 'spec.cron',
|
||||
formatter: 'HarvesterCronExpression',
|
||||
};
|
||||
|
||||
// The column of retain on VM schedules list page
|
||||
export const VM_SCHEDULE_RETAIN = {
|
||||
name: 'Retain',
|
||||
labelKey: 'harvester.tableHeaders.retain',
|
||||
value: 'spec.retain',
|
||||
sort: 'spec.retain',
|
||||
align: 'center',
|
||||
};
|
||||
|
||||
// The column of maxFailure on VM schedules list page
|
||||
export const VM_SCHEDULE_MAX_FAILURE = {
|
||||
name: 'MaxFailure',
|
||||
labelKey: 'harvester.tableHeaders.maxFailure',
|
||||
value: 'spec.maxFailure',
|
||||
sort: 'spec.maxFailure',
|
||||
align: 'center',
|
||||
};
|
||||
|
||||
// The column of type on VM schedules list page
|
||||
export const VM_SCHEDULE_TYPE = {
|
||||
name: 'Type',
|
||||
labelKey: 'harvester.tableHeaders.scheduleType',
|
||||
value: 'spec.vmbackup.type',
|
||||
sort: 'spec.vmbackup.type',
|
||||
align: 'center',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user