mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
fix: inherit labels (#322)
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
@@ -60,11 +60,11 @@ export default class HciVmTemplateVersion extends HarvesterResource {
|
||||
applyDefaults() {
|
||||
const spec = {
|
||||
vm: {
|
||||
metadata: { annotations: { [HCI_ANNOTATIONS.VOLUME_CLAIM_TEMPLATE]: '[]' } },
|
||||
metadata: { annotations: { [HCI_ANNOTATIONS.VOLUME_CLAIM_TEMPLATE]: '[]' }, labels: {} },
|
||||
spec: {
|
||||
runStrategy: 'RerunOnFailure',
|
||||
template: {
|
||||
metadata: { annotations: {} },
|
||||
metadata: { annotations: {}, labels: {} },
|
||||
spec: {
|
||||
domain: {
|
||||
machine: { type: '' },
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user