-
Notifications
You must be signed in to change notification settings - Fork 443
operand: Updates to cc-manager and sandbox-device-plugin #2054
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
…dling CDI spec creation Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
rajatchopra
left a comment
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
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.
Pull request overview
This PR updates the operand configurations for cc-manager and sandbox-device-plugin to align with updated functionality. The sandbox-device-plugin now handles CDI (Container Device Interface) spec creation internally, requiring access to the CDI specification directory. The cc-manager changes remove a hardcoded device ID list in favor of the dynamic configuration approach already implemented in the operator.
Changes:
- Added
/var/run/cdivolume mount to sandbox-device-plugin for CDI spec management - Removed hardcoded
CC_CAPABLE_DEVICE_IDSenvironment variable from cc-manager daemonset template
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| assets/state-sandbox-device-plugin/0500_daemonset.yaml | Added cdi-root volume and mount to enable CDI spec creation by the device plugin |
| assets/state-cc-manager/0500_daemonset.yaml | Removed obsolete hardcoded CC_CAPABLE_DEVICE_IDS environment variable (now configured via values.yaml and applied by operator) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
shivamerla
left a comment
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.
looks good
cdesiniotis
left a comment
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. Left one minor comment, will trigger the CI once addressed.
| - name: cdi-root | ||
| hostPath: | ||
| path: /var/run/cdi | ||
| type: DirectoryOrCreate |
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.
nit: let's add the newline back
sandbox-device-plugin: Add /var/run/cdi mount since the DP is now handling CDI spec creation
cc-manager: Remove obsolete CC_CAPABLE_DEVICE_IDS