-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
review processing of DeviceRequest due to Docker engine changes #689
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks
moby/moby#48483 Signed-off-by: Guillaume Lours <[email protected]>
count: 2 | ||
device_ids: ["my-device-id"] | ||
`) | ||
assert.ErrorContains(t, err, `invalid "count" and "device_ids" are attributes are exclusive`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert.ErrorContains(t, err, `invalid "count" and "device_ids" are attributes are exclusive`) | |
assert.ErrorContains(t, err, `invalid "count" and "device_ids", these attributes are exclusive`) |
count: 2 | ||
device_ids: ["my-device-id"] | ||
`) | ||
assert.ErrorContains(t, err, `invalid "count" and "device_ids" are attributes are exclusive`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: why can't capabilities
and device_ids
be defined at the same time?
} | ||
d.Capabilities = caps | ||
if driver, ok := v["driver"]; ok { | ||
if val, ok := driver.(string); ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't JSON schema handle this?
See moby/moby#48483
Fixes docker/docs#21026