fix: inherit labels (#322)

Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
Yiya Chen authored and GitHub committed 2025-06-04 17:42:57 +08:00
1 parent 9e015ec3b1
commit 01528f7429
4 files changed
+12 -3

No files matched your search

@@ -233,7 +233,7 @@ export default class VirtVm extends HarvesterResource {
const spec = {
runStrategy: 'RerunOnFailure',
template: {
metadata: { annotations: {} },
metadata: { annotations: {}, labels: {} },
spec: {
domain: {
machine: { type: '' },
@@ -283,6 +283,7 @@ export default class VirtVm extends HarvesterResource {
if (realMode !== _CLONE) {
this.metadata['annotations'] = { [HCI_ANNOTATIONS.VOLUME_CLAIM_TEMPLATE]: '[]' };
this.metadata['labels'] = {};
this['spec'] = spec;
}
}