Skip to content

feat: prioritize longhorn storage class and use it as default - #146

Merged
biersoeckli merged 1 commit into
mainfrom
feat/storage-class-longhorn-priority
Oct 8, 2026
Merged

biersoeckli merged 1 commit into
mainfrom
feat/storage-class-longhorn-priority

Conversation

@aperolschpritz

Copy link
Copy Markdown
Collaborator

Summary

  • Sort available storage classes so longhorn is always listed before local-path, with all remaining entries sorted alphabetically.
  • New volume dialogs for apps and agents now default to longhorn when available, otherwise fall back to the first available class.

Details

  • Added StorageClassUtils (src/shared/utils/storage-class.utils.ts) with sortStorageClasses() and getDefaultStorageClass().
  • cluster.service.ts getStorageClasses() now sorts via the utility.
  • Updated storage-edit-overlay.tsx (apps) and agent-volume-edit-overlay.tsx (agents) to use the longhorn-aware default.

Tests

  • Added storage-class.utils.unit.spec.ts.
  • yarn vitest run src/shared/utils/storage-class.utils.unit.spec.ts -> 7 passed.

Sort available storage classes so longhorn is always listed before
local-path, with remaining entries alphabetical. New volume dialogs for
apps and agents now default to longhorn when available.
@biersoeckli
biersoeckli merged commit 9c74e91 into main Oct 8, 2026
2 checks passed
@biersoeckli
biersoeckli deleted the feat/storage-class-longhorn-priority branch October 8, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants