fix adding existing volume in edit VM page (#351) (#352)

(cherry picked from commit 57cbd799ddbc0e777c6052f165f200de71d2e9f2)

Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
mergify[bot] 2025-06-26 10:53:32 +08:00 committed by GitHub
parent 4599159bff
commit 08e81b0628
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {