Closed simon3z closed 6 years ago
Yes, that reminds me that I fixed it but didn't push the fix!
See https://github.com/kubevirt/demo/pull/44/commits/39a7319041d72a0d1bec0f623013836a21964fdb
In general it is probably a bug in Presets - @stu-gott ?
I think it is our new openapi validation. We need to make sure that empty maps and no map are treated equally valid for such fields. Same for arrays. Could you file a bug against kubevirt?
I think it is our new openapi validation. We need to make sure that empty maps and no map are treated equally valid for such fields. Same for arrays. Could you file a bug against kubevirt?
Oh actually it is the other way round. We need devices. We also need at least one disk in the devices section, so it should be even more strict ...
Oh actually it is the other way round. We need devices. We also need at least one disk in the devices section, so it should be even more strict ...
right, the empty devices field is just side stepping the CRD openapiv3 validation.
We need to make sure that empty maps and no map are treated equally valid for such fields.
no map vs empty map can mean different things. no map means the value is not set. an empty map means the map is initialized, but there are no values. These two states can be interpreted as meaning two separate things.
Closed in current release.
Apparently adding an empty
spec.domain.devices
allowed me to move forward.cc @fabiand