Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feat: support more vm/vmss operations#153

Merged
feiskyer merged 2 commits intomainfrom
guwe/merge-vm-tools
Aug 14, 2025
Merged

Feat: support more vm/vmss operations#153
feiskyer merged 2 commits intomainfrom
guwe/merge-vm-tools

Conversation

@gossion
Copy link
Member

@gossion gossion commented Aug 13, 2025

No description provided.

@feiskyer feiskyer requested a review from Copilot August 14, 2025 01:11
Copy link
Contributor

Copilot AI left a 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

@gossion gossion force-pushed the guwe/merge-vm-tools branch from 0e305e2 to 41b1910 Compare August 14, 2025 02:22
@gossion gossion force-pushed the guwe/merge-vm-tools branch from 41b1910 to fecab94 Compare August 14, 2025 02:29
Copy link
Member

@feiskyer feiskyer left a 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

@feiskyer feiskyer merged commit 14e1d51 into main Aug 14, 2025
9 checks passed
@feiskyer feiskyer deleted the guwe/merge-vm-tools branch August 14, 2025 06:42
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.

2 participants

Comments