mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-21 16:21:12 +00:00
Added default openshift VM templates label (#54456)
This commit is contained in:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user