mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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:
|
||||
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:
|
||||
annotations = definition['metadata']['annotations']
|
||||
if self.params.get('display_name'):
|
||||
|
|
Loading…
Reference in a new issue