fix: create new secret on vm creation (#614)

* fix: create new secret on vm creation

Signed-off-by: Caio Torres <caio.torres@suse.com>

* fix: ensure parseVM result is immutable

Signed-off-by: Caio Torres <caio.torres@suse.com>

---------

Signed-off-by: Caio Torres <caio.torres@suse.com>
This commit is contained in:
Caio Torres
2025-11-27 17:36:55 +08:00
committed by GitHub
parent fab7fbec5e
commit 0b37467f76
2 changed files with 23 additions and 13 deletions
@@ -490,6 +490,7 @@ export default {
if (this.isSingle) {
if (!this.value.spec.template.spec.hostname) {
this.value.spec.template.spec['hostname'] = this.value.metadata.name;
this.spec.template.spec['hostname'] = this.value.metadata.name;
}
}