mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-06 22:26:05 +08:00
feat: add support for configuring transparent hugepages (#414)
* feat: add support for configuring transparent hugepages Related-to: https://github.com/harvester/harvester/issues/5006 Co-authored-by: Moritz Röhrich <moritz.rohrich@suse.com> Signed-off-by: Tim Serong <tserong@suse.com> * fix: return empty object if hugepages can't be found for node Related-to: https://github.com/harvester/harvester/issues/5006 Co-authored-by: Andy Lee <andy.lee@suse.com> Signed-off-by: Tim Serong <tserong@suse.com> --------- Signed-off-by: Tim Serong <tserong@suse.com> Co-authored-by: Moritz Röhrich <moritz.rohrich@suse.com> Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
co-authored by
Moritz Röhrich
Andy Lee
parent
6fedcc353c
commit
30de2b1a18
@@ -28,6 +28,7 @@ import { HCI } from '../../types';
|
||||
import HarvesterDisk from './HarvesterDisk';
|
||||
import HarvesterSeeder from './HarvesterSeeder';
|
||||
import HarvesterKsmtuned from './HarvesterKsmtuned';
|
||||
import HarvesterHugepages from './HarvesterHugepages';
|
||||
import Tags from '../../components/DiskTags';
|
||||
import { LVM_DRIVER } from '../../models/harvester/storage.k8s.io.storageclass';
|
||||
import isEqual from 'lodash/isEqual';
|
||||
@@ -50,6 +51,7 @@ export default {
|
||||
ArrayListGrouped,
|
||||
HarvesterDisk,
|
||||
HarvesterKsmtuned,
|
||||
HarvesterHugepages,
|
||||
ButtonDropdown,
|
||||
KeyValue,
|
||||
Banner,
|
||||
@@ -225,6 +227,12 @@ export default {
|
||||
return !!this.$store.getters[`${ inStore }/schemaFor`](HCI.KSTUNED);
|
||||
},
|
||||
|
||||
hasHugepagesSchema() {
|
||||
const inStore = this.$store.getters['currentProduct'].inStore;
|
||||
|
||||
return !!this.$store.getters[`${ inStore }/schemaFor`](HCI.HUGEPAGES);
|
||||
},
|
||||
|
||||
hasBlockDevicesSchema() {
|
||||
const inStore = this.$store.getters['currentProduct'].inStore;
|
||||
|
||||
@@ -647,6 +655,17 @@ export default {
|
||||
</template>
|
||||
</ArrayListGrouped>
|
||||
</Tab>
|
||||
<Tab
|
||||
v-if="hasHugepagesSchema"
|
||||
name="Hugepages"
|
||||
:weight="70"
|
||||
:label="t('harvester.host.tabs.hugepages')"
|
||||
>
|
||||
<HarvesterHugepages
|
||||
:node="value"
|
||||
:register-before-hook="registerBeforeHook"
|
||||
/>
|
||||
</Tab>
|
||||
<Tab
|
||||
v-if="hasKsmtunedSchema"
|
||||
name="Ksmtuned"
|
||||
|
||||
Reference in New Issue
Block a user