Skip to content

Commit

Permalink
filter storageClass by provisioner
Browse files Browse the repository at this point in the history
(cherry picked from commit dc39cd0)
  • Loading branch information
WuJun2016 authored and mergify[bot] committed May 7, 2024
1 parent 9452d3b commit aabd429
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/harvester/dialog/RestoreSnapshotDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export default {
if (this.showStorageClass) {
const defaultStorage = this.$store.getters[`${ inStore }/all`](STORAGE_CLASS).find(s => s.isDefault);
this.$set(this, 'storageClassName', defaultStorage?.metadata?.name || 'longhorn');
const currentStorageName = this.resources[0].metadata?.annotations[HCI_ANNOTATIONS.STORAGE_CLASS];
this.$set(this, 'storageClassName', currentStorageName || defaultStorage?.metadata?.name || 'longhorn');
}
},
Expand Down

0 comments on commit aabd429

Please sign in to comment.