From e762700c65a11c862a156aadfabce9a28244ca2c Mon Sep 17 00:00:00 2001 From: Alejandro Bonilla Date: Wed, 1 May 2024 20:28:18 -0400 Subject: [PATCH] vm-import-controller Change StorageClassName to StorageClass Change StorageClassName to StorageClass to match the chart --- .../edit/harvesterhci.io.addon/vm-import-controller.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/harvester/edit/harvesterhci.io.addon/vm-import-controller.vue b/pkg/harvester/edit/harvesterhci.io.addon/vm-import-controller.vue index 34fad69926f..3e26dbfb8a7 100644 --- a/pkg/harvester/edit/harvesterhci.io.addon/vm-import-controller.vue +++ b/pkg/harvester/edit/harvesterhci.io.addon/vm-import-controller.vue @@ -18,7 +18,7 @@ const VALUES_YAML_KEYS = [ 'resources.limits.memory', 'pvcClaim.enabled', 'pvcClaim.size', - 'pvcClaim.storageClassName', + 'pvcClaim.storageClass', ]; const DEFAULT_VALUES = { @@ -28,7 +28,7 @@ const DEFAULT_VALUES = { 'resources.limits.memory': '4Gi', 'pvcClaim.enabled': false, 'pvcClaim.size': '200Gi', - 'pvcClaim.storageClassName': '', + 'pvcClaim.storageClass': '', }; export default { @@ -108,7 +108,7 @@ export default { const inStore = this.$store.getters['currentProduct'].inStore; const defaultStorage = this.$store.getters[`${ inStore }/all`](STORAGE_CLASS).find( s => s.isDefault); - this.$set(this.valuesContent.pvcClaim, 'storageClassName', this.valuesContent?.pvcClaim?.storageClassName || defaultStorage?.metadata?.name || 'longhorn'); + this.$set(this.valuesContent.pvcClaim, 'storageClass', this.valuesContent?.pvcClaim?.storageClass || defaultStorage?.metadata?.name || 'longhorn'); this.update(); }, @@ -208,7 +208,7 @@ export default {