Skip to content
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

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

glours
Copy link
Collaborator

@glours glours commented Oct 1, 2024

@glours glours requested a review from ndeloof as a code owner October 1, 2024 12:25
@glours glours self-assigned this Oct 1, 2024
@glours glours requested review from jhrotko and laurazard October 1, 2024 12:25
Copy link
Member

@laurazard laurazard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks

@glours glours enabled auto-merge (rebase) October 2, 2024 15:39
@glours glours merged commit 173c5d6 into compose-spec:main Oct 2, 2024
8 checks passed
count: 2
device_ids: ["my-device-id"]
`)
assert.ErrorContains(t, err, `invalid "count" and "device_ids" are attributes are exclusive`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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`)
Copy link
Collaborator

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 {
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Either 'device_ids' or 'count' must be specified otherwise no GPUs are loaded
4 participants