Refactoring feature flags store functions

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-11-12 11:50:44 +01:00
parent 8ba4dbd9e8
commit 021a64a5ec
10 changed files with 39 additions and 28 deletions
+6 -6
View File
@@ -1,16 +1,18 @@
// https://github.com/harvester/dashboard/releases/tag/v1.3.0
const featuresV130 = [];
const featuresV130 = [
'supportHarvesterClusterVersion'
];
// https://github.com/harvester/dashboard/releases/tag/v1.3.1
const featuresV131 = [
...featuresV130,
'autoRotateRke2CertsSetting',
'supportBundleNodeCollectionTimeoutSetting'
];
// https://github.com/harvester/dashboard/releases/tag/v1.3.2
const featuresV132 = [
'autoRotateRke2CertsSetting',
'supportBundleNodeCollectionTimeoutSetting',
...featuresV131,
'kubeconfigDefaultTokenTTLMinutesSetting',
'improveMaintenanceMode',
];
@@ -22,9 +24,7 @@ const featuresV132 = [
// https://github.com/harvester/dashboard/releases/tag/v1.4.0-rc2
// https://github.com/harvester/dashboard/releases/tag/v1.4.0-rc1
const featuresV140 = [
'autoRotateRke2CertsSetting',
'supportBundleNodeCollectionTimeoutSetting',
'kubeconfigDefaultTokenTTLMinutesSetting',
...featuresV132,
'cpuPinning',
'usbPassthrough',
'volumeEncryption',