Added default openshift VM templates label (#54456)

This commit is contained in:
Vatsal Parekh 2019-03-27 19:16:39 +05:30 committed by ansibot
parent 9384773e1e
commit 0ab28f314a

View file

@ -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'):