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} Add addon autoscaling preview CLI flag #7151

Merged
merged 10 commits into from
Jan 12, 2024

Conversation

chihshenghuang
Copy link
Contributor

@chihshenghuang chihshenghuang commented Jan 4, 2024


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

Related command

az aks create --enable-addon-autoscaling
az aks update --enable-addon-autoscaling
az aks update --disable-addon-autoscaling

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)

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 Jan 4, 2024

⚠️Azure CLI Extensions Breaking Change Test
⚠️aks-preview
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd aks create cmd aks create added parameter enable_addon_autoscaling
⚠️ 1006 - ParaAdd aks update cmd aks update added parameter disable_addon_autoscaling
⚠️ 1006 - ParaAdd aks update cmd aks update added parameter enable_addon_autoscaling

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 Jan 4, 2024

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

@chihshenghuang chihshenghuang marked this pull request as ready for review January 4, 2024 20:04
@yonzhan yonzhan requested review from zhoxing-ms and yanzhudd January 4, 2024 23:27
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.

The change generally looks good, please fix failed CI check

@@ -558,6 +558,147 @@ def test_aks_create_and_update_with_vpa(
],
)

@AllowLargeResponse()
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

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

Queued another live test as there are some code changes since last reviewed.

Copy link
Member

Choose a reason for hiding this comment

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

Test passed!

@chihshenghuang chihshenghuang changed the title Add addon autoscaling preview CLI flag {AKS} Add addon autoscaling preview CLI flag Jan 8, 2024
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.

LGTM

VERSION = "0.5.174"
VERSION = "0.5.175"
Copy link
Contributor

@zhoxing-ms zhoxing-ms Jan 10, 2024

Choose a reason for hiding this comment

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

Could you please follow the version guideline to upgrade the extension version? https://github.com/Azure/azure-cli/blob/dev/doc/extensions/versioning_guidelines.md @chihshenghuang @FumingZhang

Copy link
Member

Choose a reason for hiding this comment

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

Considering aks-preview is a preview extension, I suppose the next version number should be 0.6.0b1. Afterwards, as long as there is no breaking change, the version number will be incremented by the number after b (e.g., 0.6.0b2, 0.6.0b3, ...), otherwise the major will be updated (e.g., 1.0.0b1). Do I understand correctly? @zhoxing-ms

Copy link
Contributor

Choose a reason for hiding this comment

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

image

Yes, the table reflects this rule. cc @jsntcy @AllyW to help confirm

Copy link
Contributor

Choose a reason for hiding this comment

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

In addition, I would like to clarify that whether the extension is a preview depends on whether its future design is stable and ensures that it does not cause any breaking changes to customers for a long time.
Therefore, even if the api-version used is preview, if you can ensure that the CLI interface remains unchanged, it can still release the GA extension version.

Copy link
Member

Choose a reason for hiding this comment

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

In our new versioning, we never use 0.x.x any longer, just start from 1.0.0 (stable) or 1.0.0b1 (preview).

Copy link
Member

Choose a reason for hiding this comment

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

In addition, I would like to clarify that whether the extension is a preview depends on whether its future design is stable and ensures that it does not cause any breaking changes to customers for a long time. Therefore, even if the api-version used is preview, if you can ensure that the CLI interface remains unchanged, it can still release the GA extension version.

Good point, I will confirm with PM whether aks-preview should continue to be a preview extension.

Copy link
Member

Choose a reason for hiding this comment

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

Confirmed with PM lead, we are likely to make breaking changes in aks-preview, and we prefer to keep aks-preview as a preview extension.

Based on the new naming convention, I think the next version should be named as 1.0.0b1 (following would be 1.0.0b2, 1.0.0b3 without breaking change, and 2.0.0b1 if there's breaking change).

@yanzhudd yanzhudd merged commit b54199b into Azure:main Jan 12, 2024
14 checks passed
@azclibot
Copy link
Collaborator

[Release] Update index.json for extension [ aks-preview ] : https://dev.azure.com/azclitools/internal/_build/results?buildId=121342&view=results

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.

7 participants