From e0b2b9ec573bf715da2f53b1f895e949d5e08c29 Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Fri, 6 Mar 2026 15:51:20 +0800 Subject: [PATCH] feat: add support-bundle-file-name setting (#725) * feat: support customizing support bundle file name Signed-off-by: Jack Yu * feat: add supportBundleFileNameSetting feature flag Signed-off-by: Jack Yu --------- Signed-off-by: Jack Yu --- pkg/harvester/config/feature-flags.js | 1 + pkg/harvester/config/settings.ts | 4 ++++ pkg/harvester/l10n/en-us.yaml | 1 + 3 files changed, 6 insertions(+) diff --git a/pkg/harvester/config/feature-flags.js b/pkg/harvester/config/feature-flags.js index b0ecc98b..be32b161 100644 --- a/pkg/harvester/config/feature-flags.js +++ b/pkg/harvester/config/feature-flags.js @@ -60,6 +60,7 @@ const FEATURE_FLAGS = { 'v1.7.1': [], 'v1.8.0': [ 'hotplugCdRom', + 'supportBundleFileNameSetting', ], }; diff --git a/pkg/harvester/config/settings.ts b/pkg/harvester/config/settings.ts index 6d513e27..dab7a8d6 100644 --- a/pkg/harvester/config/settings.ts +++ b/pkg/harvester/config/settings.ts @@ -16,6 +16,7 @@ export const HCI_SETTING = { DEFAULT_STORAGE_CLASS: 'default-storage-class', SUPPORT_BUNDLE_TIMEOUT: 'support-bundle-timeout', SUPPORT_BUNDLE_EXPIRATION: 'support-bundle-expiration', + SUPPORT_BUNDLE_FILE_NAME: 'support-bundle-file-name', SUPPORT_BUNDLE_IMAGE: 'support-bundle-image', SUPPORT_BUNDLE_NODE_COLLECTION_TIMEOUT: 'support-bundle-node-collection-timeout', STORAGE_NETWORK: 'storage-network', @@ -71,6 +72,9 @@ export const HCI_ALLOWED_SETTINGS = { [HCI_SETTING.OVERCOMMIT_CONFIG]: { kind: 'json', from: 'import' }, [HCI_SETTING.SUPPORT_BUNDLE_TIMEOUT]: { kind: 'number' }, [HCI_SETTING.SUPPORT_BUNDLE_EXPIRATION]: { kind: 'number' }, + [HCI_SETTING.SUPPORT_BUNDLE_FILE_NAME]: { + kind: 'string', canReset: true, featureFlag: 'supportBundleFileNameSetting' + }, [HCI_SETTING.SUPPORT_BUNDLE_NODE_COLLECTION_TIMEOUT]: { kind: 'number', featureFlag: 'supportBundleNodeCollectionTimeoutSetting' }, [HCI_SETTING.SUPPORT_BUNDLE_IMAGE]: { kind: 'json', from: 'import' }, [HCI_SETTING.STORAGE_NETWORK]: { diff --git a/pkg/harvester/l10n/en-us.yaml b/pkg/harvester/l10n/en-us.yaml index 51488e93..849299a1 100644 --- a/pkg/harvester/l10n/en-us.yaml +++ b/pkg/harvester/l10n/en-us.yaml @@ -1967,6 +1967,7 @@ advancedSettings: 'harv-additional-ca': 'Custom CA root certificates for TLS validation.' 'harv-overcommit-config': 'Resource overcommit configuration.' 'harv-support-bundle-timeout': 'Support bundle timeout configuration in minutes, use 0 to disable the timeout.' + 'harv-support-bundle-file-name': 'Support bundle file name configuration.' 'harv-support-bundle-expiration': 'Support bundle expiration configuration in minutes.' 'harv-support-bundle-node-collection-timeout': 'Support bundle node collection timeout configuration in minutes.' 'harv-vm-force-reset-policy': Configuration for the force-reset action when a virtual machine is stuck on a node that is down.