-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[release/2.0] Move CDI device spec out of the OCI package #11265
[release/2.0] Move CDI device spec out of the OCI package #11265
Conversation
The CDI device injection spec opt was mistakenly added to the OCI package which brought in an unintended dependency on CDI and its transitive dependencies. Signed-off-by: Derek McGowan <[email protected]> (cherry picked from commit e20f7f4) Signed-off-by: Derek McGowan <[email protected]>
pkg/oci/spec_opts.go
Outdated
// well. Therefore it is important that none of the corresponding | ||
// OCI Spec fields are reset up in the call stack once we return. | ||
return nil | ||
return errors.New("must use cdi package for CDI device injection") |
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.
The function should remain functional, as it is only "deprecated"?
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.
Or maybe just remove the function, if the impact is considered low.
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.
I'm ok removing completely
This function has been moved to prevent an unintended dependency on CDI. Signed-off-by: Derek McGowan <[email protected]> (cherry picked from commit bdc847f) Signed-off-by: Derek McGowan <[email protected]>
/retest |
/retest |
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
The CDI device injection spec opt was mistakenly added to the OCI package which brought in an unintended dependency on CDI and its transitive dependencies.
(cherry picked from commit e20f7f4)
Backport of #11262 with only the first commit. The function should remain and be marked deprecated in 2.0.