diff --git a/templates/VALIDATION.md b/templates/VALIDATION.md index fc1a19ef..10a40475 100644 --- a/templates/VALIDATION.md +++ b/templates/VALIDATION.md @@ -290,7 +290,7 @@ kind: Template [ { "name": "supported-bus", - "valid": "jsonpath::.spec.domain.devices.disks[*].disk", + "valid": "jsonpath::.spec.domain.devices.disks[*].disk.bus", "path": "jsonpath::.spec.domain.devices.disks[*].disk.bus", "rule": "enum", "message": "the disk bus type must be one of the supported values", @@ -333,7 +333,7 @@ kind: Template [ { "name": "supported-bus", - "valid": "jsonpath::.spec.domain.devices.disks[*].disk", + "valid": "jsonpath::.spec.domain.devices.disks[*].disk.bus", "path": "jsonpath::.spec.domain.devices.disks[*].disk.bus", "rule": "enum", "message": "the disk bus type must be one of the supported values", diff --git a/templates/win2k12r2-deprecated.tpl.yaml b/templates/win2k12r2-deprecated.tpl.yaml index 8f165474..85edb319 100644 --- a/templates/win2k12r2-deprecated.tpl.yaml +++ b/templates/win2k12r2-deprecated.tpl.yaml @@ -41,7 +41,7 @@ metadata: }, { "name": "windows-virtio-bus", "path": "jsonpath::.spec.domain.devices.disks[*].disk.bus", - "valid": "jsonpath::.spec.domain.devices.disks[*]", + "valid": "jsonpath::.spec.domain.devices.disks[*].disk.bus", "rule": "enum", "message": "virto disk bus type has better performance, install virtio drivers in VM and change bus type", "values": ["virtio"], @@ -49,7 +49,7 @@ metadata: }, { "name": "windows-disk-bus", "path": "jsonpath::.spec.domain.devices.disks[*].disk.bus", - "valid": "jsonpath::.spec.domain.devices.disks[*]", + "valid": "jsonpath::.spec.domain.devices.disks[*].disk.bus", "rule": "enum", "message": "disk bus has to be either virtio or sata", "values": ["virtio", "sata"] diff --git a/templates/windows.tpl.yaml b/templates/windows.tpl.yaml index 0509cbcb..fd9dd4ae 100644 --- a/templates/windows.tpl.yaml +++ b/templates/windows.tpl.yaml @@ -40,7 +40,7 @@ metadata: }, { "name": "windows-virtio-bus", "path": "jsonpath::.spec.domain.devices.disks[*].disk.bus", - "valid": "jsonpath::.spec.domain.devices.disks[*]", + "valid": "jsonpath::.spec.domain.devices.disks[*].disk.bus", "rule": "enum", "message": "virto disk bus type has better performance, install virtio drivers in VM and change bus type", "values": ["virtio"], @@ -48,7 +48,7 @@ metadata: }, { "name": "windows-disk-bus", "path": "jsonpath::.spec.domain.devices.disks[*].disk.bus", - "valid": "jsonpath::.spec.domain.devices.disks[*]", + "valid": "jsonpath::.spec.domain.devices.disks[*].disk.bus", "rule": "enum", "message": "disk bus has to be either virtio or sata", "values": ["virtio", "sata"] diff --git a/templates/windows10.tpl.yaml b/templates/windows10.tpl.yaml index 6bdf2afc..b973df6b 100644 --- a/templates/windows10.tpl.yaml +++ b/templates/windows10.tpl.yaml @@ -38,7 +38,7 @@ metadata: }, { "name": "windows-virtio-bus", "path": "jsonpath::.spec.domain.devices.disks[*].disk.bus", - "valid": "jsonpath::.spec.domain.devices.disks[*]", + "valid": "jsonpath::.spec.domain.devices.disks[*].disk.bus", "rule": "enum", "message": "virto disk bus type has better performance, install virtio drivers in VM and change bus type", "values": ["virtio"], @@ -46,7 +46,7 @@ metadata: }, { "name": "windows-disk-bus", "path": "jsonpath::.spec.domain.devices.disks[*].disk.bus", - "valid": "jsonpath::.spec.domain.devices.disks[*]", + "valid": "jsonpath::.spec.domain.devices.disks[*].disk.bus", "rule": "enum", "message": "disk bus has to be either virtio or sata", "values": ["virtio", "sata"]