Skip to content
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

{AKS} Rename to addon-autoscaling preview CLI to optimized-addon-scaling #8617

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

chihshenghuang
Copy link
Contributor

@chihshenghuang chihshenghuang commented Mar 29, 2025


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

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.json automatically.
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.

Copy link

azure-client-tools-bot-prd bot commented Mar 29, 2025

❌Azure CLI Extensions Breaking Change Test
❌aks-preview
rule cmd_name rule_message suggest_message
1007 - ParaRemove aks create cmd aks create removed parameter enable_addon_autoscaling please add back parameter enable_addon_autoscaling for cmd aks create
1007 - ParaRemove aks update cmd aks update removed parameter disable_addon_autoscaling please add back parameter disable_addon_autoscaling for cmd aks update
1007 - ParaRemove aks update cmd aks update removed parameter enable_addon_autoscaling please add back parameter enable_addon_autoscaling for cmd aks update
⚠️ 1006 - ParaAdd aks create cmd aks create added parameter enable_optimized_addon_scaling
⚠️ 1006 - ParaAdd aks update cmd aks update added parameter disable_optimized_addon_scaling
⚠️ 1006 - ParaAdd aks update cmd aks update added parameter enable_optimized_addon_scaling

Copy link

Hi @chihshenghuang,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

@yonzhan
Copy link
Collaborator

yonzhan commented Mar 29, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

Copy link

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).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copy link

github-actions bot commented Mar 29, 2025

Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Queued live test to validate the change, test passed!

  • test_aks_create_with_optimized_addon_scaling
  • test_aks_update_with_optimized_addon_scaling

@github-actions github-actions bot added the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Apr 2, 2025
@AllyW AllyW added the major release extension module with version major upgraded label Apr 2, 2025
@github-actions github-actions bot removed the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Apr 2, 2025
Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#8618 just merged and caused merge conflicts. Please update the recording files, either regenerate them or manually update the API version used in the requests sent to AKS.

@chihshenghuang
Copy link
Contributor Author

#8618 just merged and caused merge conflicts. Please update the recording files, either regenerate them or manually update the API version used in the requests sent to AKS.

Merge the latest change.

@FumingZhang do you know how to fix the azdev scan error shown below? I run the azdev scan command locally and got the result below. I didn't touch or update "management.azure.com{dcr_resource_id}?api-version=2022-06-01" which is complained by the azdev scan.

I don't understand why other PRs touch aks-preview were not blocked by this code which was added long time ago.

{
  "scan_results": {
    "/home/chih/aks/azure-cli-extensions/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py": [
      {
        "redaction_token": "+++",
        "secret_index": [
          221106,
          221889
        ],
        "secret_name": "UrlCredentials",
        "secret_value": "management.azure.com{dcr_resource_id}?api-version=2022-06-01\"\n            self.cmd(\n                get_cmd,\n                checks=[\n                    self.check(\n                        \"properties.destinations.logAnalytics[0].workspaceResourceId\",\n                        f\"{workspace_resource_id}\",\n                    )\n                ],\n            )\n\n            assert False\n        except Exception:\n            # do nothing as this is expected\n            {}\n\n        # make sure monitoring can be smoothly disabled\n        self.cmd(f\"aks disable-addons -a monitoring -g={resource_group} -n={aks_name}\")\n\n        # delete\n        self.cmd(\n            f\"aks delete -g {resource_group} -n {aks_name} --yes --no-wait\",\n            checks=[self.is_empty()],\n        )\n\n    "
      }
    ]
  },
  "secrets_detected": true
}

@FumingZhang
Copy link
Member

@chihshenghuang you can ignore the failure reported by Azure.azure-cli-extensions (azdev scan ( Medium Confidence ) on Modified Extensions), that's a false alert and it won't block your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AKS Auto-Assign Auto assign by bot major release extension module with version major upgraded
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants