-
Notifications
You must be signed in to change notification settings - Fork 1.5k
{AKS} add aks-agent extension #9106
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
|
Validation for Breaking Change Starting...
Thanks for your contribution! |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
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 adds a new aks-agent extension that provides an interactive AI-powered debugging tool for Azure Kubernetes Service (AKS) clusters. The extension enables users to ask natural language questions about their AKS clusters and receive AI-generated responses for troubleshooting.
Key changes:
- Adds the
az aks agentcommand with support for both interactive and non-interactive modes - Integrates with multiple LLM providers (Azure OpenAI, OpenAI, etc.) for AI-powered analysis
- Provides comprehensive toolsets for AKS cluster debugging and analysis
Reviewed Changes
Copilot reviewed 21 out of 22 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| setup.py | Package configuration for the aks-agent extension with dependencies |
| azext_aks_agent/init.py | Extension loader and command registration |
| azext_aks_agent/commands.py | Command definition for aks agent |
| azext_aks_agent/_params.py | Parameter definitions and argument handling |
| azext_aks_agent/custom.py | Main command implementation wrapper |
| azext_aks_agent/agent/agent.py | Core agent functionality and LLM interaction logic |
| azext_aks_agent/agent/prompt.py | AKS-specific context and workflow prompts |
| azext_aks_agent/agent/telemetry.py | Telemetry client for usage tracking |
| azext_aks_agent/_validators.py | Input validation functions for configuration files |
| azext_aks_agent/_help.py | Command help text and usage examples |
| Test files | Comprehensive unit tests for validators and agent functionality |
| Documentation | README and HISTORY files with usage instructions |
|
ae8fe30 to
6c692bd
Compare
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
…into aks-agent-extension
|
a bunch of aks-preview tests failed which are untouched in this PR. Merge the main branch onto this PR and see. |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
@yanzhudd Please help take a look, thanks. |
|
[Release] Update index.json for extension [ aks-agent-1.0.0b1 ] : https://dev.azure.com/msazure/One/_build/results?buildId=135637546&view=results |
Test
when both aks-preview and aks-agent extension are added, I can find both commands under
az aks, and both subcommands work fine.This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install wheel==0.30.0required)For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.jsonautomatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json.