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] az aks update: Make specified version to match current version when turning off autoupgrade #31018

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

yewmsft
Copy link
Member

@yewmsft yewmsft commented Mar 12, 2025

…upgrade

Related command
az aks update -n -g --auto-upgrade-channel none

Description
This change is for accommodating an AKS RP validation rule change. When turning off autoupgrade on a aks cluster, AKS RP requires the cluster's specified kubernetes version to be greater or equal to the current kubernetes version. To unblock the cli usage to turning off autoupgrade, we are making specified k8s version to match current k8s version during the update.

Testing Guide

History Notes


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

Copy link

Validation for Azure CLI Full Test Starting...

Thanks for your contribution!

Copy link

Validation for Breaking Change Starting...

Thanks for your contribution!

@yonzhan
Copy link
Collaborator

yonzhan commented Mar 12, 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>

@@ -825,6 +825,16 @@ def aks_update(
# DO NOT MOVE: get all the original parameters and save them as a dictionary
raw_parameters = locals()

# Check if auto_upgrade_channel is set to "none"
Copy link
Member

Choose a reason for hiding this comment

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

Can we move these into the AKSManagedClusterUpdateDecorator?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AKS az aks/acs/openshift Auto-Assign Auto assign by bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants