diff --git a/pkg/harvester/components/SettingList.vue b/pkg/harvester/components/SettingList.vue index b2bba63ea47..4dfa8c14257 100644 --- a/pkg/harvester/components/SettingList.vue +++ b/pkg/harvester/components/SettingList.vue @@ -112,6 +112,9 @@ export default { Modified + + Technical Preview +

@@ -200,4 +203,12 @@ export default { padding: 2px 10px; font-size: 12px; } + +.technical-preview { + margin-left: 10px; + border: 1px solid var(--warning); + border-radius: 5px; + padding: 2px 10px; + font-size: 12px; +} diff --git a/pkg/harvester/config/settings.js b/pkg/harvester/config/settings.js index 9822838c970..d893b3df0fa 100644 --- a/pkg/harvester/config/settings.js +++ b/pkg/harvester/config/settings.js @@ -31,7 +31,8 @@ export const HCI_SETTING = { VM_TERMINATION_PERIOD: 'default-vm-termination-grace-period-seconds', NTP_SERVERS: 'ntp-servers', AUTO_ROTATE_RKE2_CERTS: 'auto-rotate-rke2-certs', - KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES: 'kubeconfig-default-token-ttl-minutes' + KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES: 'kubeconfig-default-token-ttl-minutes', + LONGHORN_V2_DATA_ENGINE_ENABLED: 'longhorn-v2-data-engine-enabled', }; export const HCI_ALLOWED_SETTINGS = { @@ -83,6 +84,7 @@ export const HCI_ALLOWED_SETTINGS = { kind: 'json', from: 'import', canReset: true }, [HCI_SETTING.KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES]: {}, + [HCI_SETTING.LONGHORN_V2_DATA_ENGINE_ENABLED]: { kind: 'boolean', technicalPreview: true }, }; export const HCI_SINGLE_CLUSTER_ALLOWED_SETTING = { diff --git a/pkg/harvester/l10n/en-us.yaml b/pkg/harvester/l10n/en-us.yaml index 10c1deed23a..611fa6e93a4 100644 --- a/pkg/harvester/l10n/en-us.yaml +++ b/pkg/harvester/l10n/en-us.yaml @@ -1339,6 +1339,7 @@ harvester: placeholder: 'topology.kubernetes.io/zone' advancedSettings: + technicalPreview: 'Technical Previews allow users to test and evaluate early-access functionality prior to official supported releases' descriptions: 'harv-vlan': Default Network Interface name of the VLAN network. 'harv-backup-target': Custom backup target to store VM backups. @@ -1370,6 +1371,7 @@ advancedSettings: 'harv-ntp-servers': Configure NTP server. You can configure multiple IPv4 addresses or host addresses. 'harv-auto-rotate-rke2-certs': The certificate rotation mechanism relies on Rancher. Harvester will automatically update certificates generation to trigger rotation. 'harv-kubeconfig-default-token-ttl-minutes': 'TTL (in minutes) applied on Harvester admin kubeconfig files. Default is 0, which means to never expire.' + 'harv-longhorn-v2-data-engine-enabled': 'Enable the Longhorn V2 data engine. Default is false. ' typeLabel: kubevirt.io.virtualmachine: |-