-
Notifications
You must be signed in to change notification settings - Fork 15
Feat: support more vm/vmss operations #153
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
Conversation
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 refactors the compute operations functionality to use a unified approach, consolidating multiple individual VMSS command tools into a single, comprehensive az_compute_operations
tool. This improves the API design by providing consistent access to both VM and VMSS operations through a single interface.
Key Changes
- Replaced multiple individual VMSS command registrations with a single unified compute operations tool
- Implemented access level validation through operation-level checks rather than tool registration filtering
- Added comprehensive operation mapping and validation for both VMs and VMSS resources
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
internal/server/server.go | Simplified compute component registration to use single unified tool instead of multiple individual tools |
internal/server/server_test.go | Updated test expectations to reflect unified tool approach with consistent tool counts across access levels |
internal/components/compute/registry.go | Removed deprecated VMSS command registration functions that are no longer needed |
internal/components/compute/azcommands.go | Complete rewrite to implement unified operations with comprehensive operation mapping and access validation |
internal/components/compute/executor.go | New executor implementation for handling unified compute operations with enhanced error messaging |
internal/components/compute/unified_test.go | Comprehensive test suite for the new unified operations approach |
0e305e2
to
41b1910
Compare
41b1910
to
fecab94
Compare
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.
Thanks addressing the comments
No description provided.