From 08e81b0628b53b87379d9c17b32df4631a1c20de Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 26 Jun 2025 10:53:32 +0800 Subject: [PATCH] fix adding existing volume in edit VM page (#351) (#352) (cherry picked from commit 57cbd799ddbc0e777c6052f165f200de71d2e9f2) Co-authored-by: Andy Lee --- .../VirtualMachineVolume/type/existing.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/type/existing.vue b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/type/existing.vue index 802b4e9b..09356aa0 100644 --- a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/type/existing.vue +++ b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/type/existing.vue @@ -142,10 +142,12 @@ export default { return; } + // update this.value with existing volume spec, then update to upstream component this.value.accessModes = pvcResource.spec.accessModes[0]; this.value.size = pvcResource.spec.resources.requests.storage; this.value.storageClassName = pvcResource.spec.storageClassName; this.value.volumeMode = pvcResource.spec.volumeMode; + this.update(); }, 'value.type'(neu) {