Added default openshift VM templates label (#54456)
This commit is contained in:
parent
9384773e1e
commit
0ab28f314a
1 changed files with 4 additions and 0 deletions
|
@ -297,6 +297,10 @@ class KubeVirtVMTemplate(KubeVirtRawModule):
|
||||||
# Fill in template parameters:
|
# Fill in template parameters:
|
||||||
definition['parameters'] = self.params.get('parameters')
|
definition['parameters'] = self.params.get('parameters')
|
||||||
|
|
||||||
|
# Fill in the default Label
|
||||||
|
labels = definition['metadata']['labels']
|
||||||
|
labels['template.cnv.io/type'] = 'vm'
|
||||||
|
|
||||||
# Fill in Openshift/Kubevirt template annotations:
|
# Fill in Openshift/Kubevirt template annotations:
|
||||||
annotations = definition['metadata']['annotations']
|
annotations = definition['metadata']['annotations']
|
||||||
if self.params.get('display_name'):
|
if self.params.get('display_name'):
|
||||||
|
|
Loading…
Reference in a new issue