Skip to content

Feature/cpu advertisement #18

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

Merged
merged 8 commits into from
Apr 7, 2025
Merged

Feature/cpu advertisement #18

merged 8 commits into from
Apr 7, 2025

Conversation

dpdornseifer
Copy link
Collaborator

Description of changes:

  • Repackaged and linted existing project
  • Added CPU advertising device plugin that can be enabled by feature flag
  • Readme and helm chart update, added changelog

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

@foersleo foersleo left a comment

Choose a reason for hiding this comment

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

Hi David, thank you for putting this together. I think this is a great improvement, however, I left quite some comments mostly around organization of these changes. Right now this series of commits puts a lot of back and forth in that ultimately does not add any value, especially given the minimal commit messages. As far as I can tell the functional aspects are sound, but the back and forth makes it harder to review.

I am not sure, if this is on me and how I view git history, but I would like some more context as to the whats and whys on changes. This can either be in the PR overview or in the commit messages (preferably in the commit messages, because it works for both types of folks - those that go through github PRs and those that go through git log on their local check-out).

Let me know what you think.

@dpdornseifer
Copy link
Collaborator Author

thanks @foersleo , considered squashing the commits first and re-write history however reading your fb think it makes sense to keep refactoring separated from feature commit and version bumps - will update PR

@dpdornseifer dpdornseifer force-pushed the feature/cpu_advertisement branch from f179f3f to 96b43a6 Compare March 19, 2025 15:11
foersleo
foersleo previously approved these changes Mar 20, 2025
@dpdornseifer dpdornseifer force-pushed the feature/cpu_advertisement branch 2 times, most recently from 7ccc7c2 to cbd0a3e Compare March 27, 2025 13:56
foersleo
foersleo previously approved these changes Mar 27, 2025
@dpdornseifer dpdornseifer force-pushed the feature/cpu_advertisement branch from cbd0a3e to 4c7325c Compare March 28, 2025 11:38
David Dornseifer added 7 commits April 2, 2025 16:19
* Moved device-plugin and device monitor to separate packages
* Moved main.go to dedicated cmd folder
* Updated docker build container
* Added separate config package including validation function
* Added separate device plugin to advise available vCPUs for enclaves which can be turned on via feature flag. K8s scheduler can pickup available vCPUs and schedule workloads based on vCPU availability.
* Added config options to Readme and extended deployment manifest.
* Added unit tests for config and extended unit tests for previous device plugin to test new functionality.
* Moved IBasicDevicePlugin to monitoring package and added ResourceName() so that monitor is aware of device-plugin it is running
* Reused device monitor package for Nitro Enclaves CPU plugin to avoid code duplication
* Updated Helm chart to expose new config interface for vCPU advertisement device-plugin
* Added GitHub workflow to run unit tests and build flow on pull requests
@dpdornseifer dpdornseifer force-pushed the feature/cpu_advertisement branch from 4c7325c to 3171b29 Compare April 7, 2025 08:16
@dpdornseifer dpdornseifer merged commit dba1171 into main Apr 7, 2025
1 check passed
@dpdornseifer dpdornseifer deleted the feature/cpu_advertisement branch April 7, 2025 11:58
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.

3 participants