fix(node): add CPU utilization to node data source#2605
Conversation
Signed-off-by: 666Goofy666 <153852747+666Goofy666@users.noreply.github.com>
Summary of ChangesHello @666Goofy666, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds CPU utilization to the proxmox_virtual_environment_node data source. While the logic for adding the new field is sound, the implementation is placed in the legacy SDK provider (proxmoxtf/). This contradicts the project's architectural guidelines, which state that new features must be added to the modern framework provider (fwprovider/). The implementation should be moved. Additionally, the documentation for the new field could be more specific about its value range to improve clarity for users.
Signed-off-by: 666Goofy666 <153852747+666Goofy666@users.noreply.github.com>
bpg-dev
left a comment
There was a problem hiding this comment.
Thanks @666Goofy666, good addition!
LGTM! 🚀
What does this PR do?
Enhancement: Add CPU utilization from the PVE Node API to
proxmox_virtual_environment_node.This change aims to close: #2387
However, I don’t think it’s a good idea to add the socket count to
proxmox_virtual_environment_nodes, since the PVE Nodes API does not return this information. It would require calculating it from the Node API.We currently do not perform N+1 calls in the provider.
¯\(ツ)/¯
Contributor's Note
make lintand fixed any issues.make docs; SDK: manual/docs/edits).!in PR title).make exampleto verify the change works (mainly for SDK / provider config changes).Proof of Work
Community Note
Closes #2387