add feature flag config

This commit is contained in:
andy.lee
2024-11-12 11:50:31 +01:00
committed by Francesco Torchia
parent aa3c9268e3
commit 77d7f13836
7 changed files with 107 additions and 16 deletions
@@ -14,6 +14,7 @@ import { BACKUP_TYPE } from '../config/types';
import { HCI } from '../types';
import HarvesterResource from './harvester';
import { LVM_DRIVER } from './harvester/storage.k8s.io.storageclass';
import { featureEnabled } from '../utils/server';
export const OFF = 'Off';
@@ -480,6 +481,10 @@ export default class VirtVm extends HarvesterResource {
return null;
}
get cpuPinningFeatureEnabled() {
return featureEnabled(this.$rootGetters, 'cpuPinning');
}
get isCpuPinning() {
return this.spec?.template?.spec?.domain?.cpu?.dedicatedCpuPlacement === true;
}