Conversation
️✔️AzureCLI-FullTest
|
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| aks install-cli | cmd aks install-cli added parameter gh_token |
|
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>
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
Queued live test to validate the change, test passed! |
az aks install-cli: Add --gh-token option to allow authentication when downloading kubeloginaz aks install-cli: Add --gh-token option to allow authentication when downloading kubelogin
There was a problem hiding this comment.
Pull request overview
This PR adds support for GitHub authentication when downloading kubelogin binaries through the az aks install-cli command by introducing a new --gh-token parameter. This helps users avoid GitHub API rate limiting issues when downloading kubelogin releases.
- Adds
--gh-tokenparameter to theaks install-clicommand - Threads the token through the function call chain from
k8s_install_clitok8s_install_kubeloginto_urlopen_read - Updates HTTP request handling to include Authorization header when a token is provided
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/azure-cli/azure/cli/command_modules/acs/_params.py | Adds the gh_token parameter definition with help text explaining its purpose for avoiding rate limiting |
| src/azure-cli/azure/cli/command_modules/acs/custom.py | Updates function signatures to accept and pass the gh_token parameter, and modifies _urlopen_read and _urlretrieve to include the Authorization header in HTTP requests when a token is provided |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
az aks install-cli: Add --gh-token option to allow authentication when downloading kubeloginaz aks install-cli: Add --gh-token parameter to allow authentication when downloading kubelogin
|
could you please add some tests for the newly added parameter? |
sure, I've added a unit test for the newly added param. |
Related command
az aks install-cliDescription
[AKS]
az aks install-cli: Add--gh-tokenoption to allow authentication when downloading kubelogin binaries from GitHub releases, helping to prevent rate limiting. This helps resolve issue #15932Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.