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

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

Signed-off-by: pohanhuang <pohan.huang@suse.com>
This commit is contained in:
Po Han Huang authored and GitHub committed 2026-11-17 22:34:32 +08:00
1 parent 6a20578424
commit aa5a501c29
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);
});