ui: add Upgrade Storage Class selector for v1.10+ upgrade flows (#1249) (#1266)

Add a StorageClass selector to online and air-gapped upgrade pages when
the repositoryStorageClass feature is enabled (v1.10+).

- Online: stores selection in harvesterhci.io/upgrade-storage-class annotation
- Air-gapped: stores selection in image spec.targetStorageClassName
- Selector locked while uploaded image exists; unlocked on switch to URL
- Hidden on pre-v1.10 clusters


(cherry picked from commit aa5a501c29)

Signed-off-by: pohanhuang <pohan.huang@suse.com>
Co-authored-by: Po Han Huang <pohan.huang@suse.com>
This commit is contained in:
mergify[bot]andPo Han Huang authored and GitHub committed 2026-11-20 20:01:31 +08:00
1 parent ff0a6c8431
commit 8ac059b2d6
10 files changed
+475 -12

No files matched your search

@@ -21,6 +21,11 @@ describe('featureEnabled', () => {
expect(featureEnabled('vncPreserveSession', 'v1.7.0')).toBe(true);
});
it('should enable repositoryStorageClass only from Harvester v1.10.0', () => {
expect(featureEnabled('repositoryStorageClass', 'v1.9.1')).toBe(false);
expect(featureEnabled('repositoryStorageClass', 'v1.10.0')).toBe(true);
});
it('should return false for unknown features', () => {
expect(featureEnabled('doesNotExist', 'v1.8.0')).toBe(false);
});