-
Notifications
You must be signed in to change notification settings - Fork 3k
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] az aks upgrade
: Support tier switch with AKS upgrade
#29448
Conversation
️✔️AzureCLI-FullTest
|
Hi @wenxuan0923, |
|
rule | cmd_name | rule_message | suggest_message |
---|---|---|---|
aks upgrade | cmd aks upgrade added parameter k8s_support_plan |
||
aks upgrade | cmd aks upgrade added parameter tier |
Thank you for your contribution! We will review the pull request and get back to you soon. |
az aks upgrade
: support tier switch with AKS upgrade
az aks upgrade
: support tier switch with AKS upgradeaz aks upgrade
: Support tier switch with AKS upgrade
a6c93cb
to
05fd984
Compare
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.
lgtm
Queued live test to validate the change, test passed!
- test_aks_upgrade_with_tier_switch
if tier is not None: | ||
instance.sku.tier = tier | ||
|
||
if k8s_support_plan is not None: | ||
instance.support_plan = k8s_support_plan |
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.
Is it necessary to add validation about lts tier requires premium sku?
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.
@FumingZhang thanks for reviewing! Yes, we can add it here or rely on the validation on the server side. I just updated the code to raise CLIError for it on L872.
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.
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.
I am having an issue on L872. shouldn't it be instance.sku.tier not instance.tier?
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.
@sdrinovsky thanks for bringing this to my attention, I started a PR to get it fixed #29949
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.
LGTM
PR #29436 just merged, which updated the default API version used by the command group, you'll need to update the recording file to pass the CI. Please also rebase from dev branch to pick up the change. |
9632eb2
to
4387588
Compare
PR rebased to the latest dev branch |
Related command
az aks upgrade
Description
Adding options
--tier
and--k8s-support-plan
toaz aks upgrade
command to support enable/disable AKSLongTermSupport with upgrade operation.For example, if a cluster is currently on version 1.26, they can upgrade to 1.27 LTS with command:
az aks upgrade -g myResourceGroup -n myCluster -k 1.27 --tier Premium --k8s-support-plan AKSLongTermSupport
Similarly, to exit LTS for clusters on 1.27, they can do:
az aks upgrade -g myResourceGroup -n myCluster -k 1.28 --tier Standard --k8s-support-plan KubernetesOfficial
Testing 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.