From c010ce3cc66d92d40de888ec6ae9825f041937f8 Mon Sep 17 00:00:00 2001 From: Karel Simon Date: Wed, 10 Jun 2020 09:40:15 +0200 Subject: [PATCH] added cdrom disk to windows templates In windows templates is cdrom validation. Because there was no cdrom in disks, validator returns error when user creates windows vm. This PR adds cdrom in vm disks. Signed-off-by: Karel Simon --- templates/win2k12r2-deprecated.tpl.yaml | 1 + templates/windows.tpl.yaml | 1 + templates/windows10.tpl.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/templates/win2k12r2-deprecated.tpl.yaml b/templates/win2k12r2-deprecated.tpl.yaml index 204c4491..cbfa6d09 100644 --- a/templates/win2k12r2-deprecated.tpl.yaml +++ b/templates/win2k12r2-deprecated.tpl.yaml @@ -58,6 +58,7 @@ metadata: }, { "name": "windows-cd-bus", "path": "jsonpath::.spec.domain.devices.disks[*].cdrom.bus", + "valid": "jsonpath::.spec.domain.devices.disks[*].cdrom", "rule": "enum", "message": "cd bus has to be sata", "values": ["sata"] diff --git a/templates/windows.tpl.yaml b/templates/windows.tpl.yaml index e9913647..c1a2bb0a 100644 --- a/templates/windows.tpl.yaml +++ b/templates/windows.tpl.yaml @@ -57,6 +57,7 @@ metadata: }, { "name": "windows-cd-bus", "path": "jsonpath::.spec.domain.devices.disks[*].cdrom.bus", + "valid": "jsonpath::.spec.domain.devices.disks[*].cdrom", "rule": "enum", "message": "cd bus has to be sata", "values": ["sata"] diff --git a/templates/windows10.tpl.yaml b/templates/windows10.tpl.yaml index 3538c921..d2a8564c 100644 --- a/templates/windows10.tpl.yaml +++ b/templates/windows10.tpl.yaml @@ -53,6 +53,7 @@ metadata: }, { "name": "windows-cd-bus", "path": "jsonpath::.spec.domain.devices.disks[*].cdrom.bus", + "valid": "jsonpath::.spec.domain.devices.disks[*].cdrom", "rule": "enum", "message": "cd bus has to be sata", "values": ["sata"]