mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-12-01 04:39:01 +08:00
add feature flag config
This commit is contained in:
1 parent
aa3c9268e3
commit
77d7f13836
7 files changed
+107
-16
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user