Skip to content

[AKS] GA Kubernetes version alias#22456

Merged
zhoxing-ms merged 2 commits intoAzure:devfrom
zjpjack:jizen/GA_mc_aliasminorversion
May 16, 2022
Merged

[AKS] GA Kubernetes version alias#22456
zhoxing-ms merged 2 commits intoAzure:devfrom
zjpjack:jizen/GA_mc_aliasminorversion

Conversation

@zjpjack
Copy link
Copy Markdown
Contributor

@zjpjack zjpjack commented May 16, 2022

Related command

az aks create --kubernetes-version
az aks show

Description

(1) AKS supports ManagedCluster kubernetes version with format major.minor, so remove the original limitation version number must have patch number
(2) AKS has both kubernetesVersion and currentKubernetesVersion, currentKubernetesVersion is the actual version that MC running. We add it in the az aks show command

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 feature


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

…w table output contain currentKubernetesVersion column
@ghost ghost requested a review from wangzelin007 May 16, 2022 05:27
@ghost ghost assigned zhoxing-ms May 16, 2022
@ghost ghost added this to the May 2022 (2022-05-24) - For Build milestone May 16, 2022
@ghost ghost added the Auto-Assign Auto assign by bot label May 16, 2022
@ghost ghost requested a review from yonzhan May 16, 2022 05:27
@ghost ghost added the AKS az aks/acs/openshift label May 16, 2022
@zjpjack zjpjack changed the title [AKS]GA Kubernetes version alias [AKS] GA Kubernetes version alias May 16, 2022
@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 16, 2022

AKS

Copy link
Copy Markdown
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

"""Validates a string as a possible Kubernetes version. An empty string is also valid, which tells the server
to use its default version."""
if namespace.kubernetes_version:
k8s_release_regex = re.compile(r'^[v|V]?(\d+\.\d+\.\d+.*)$')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is reducing the .* expected?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, this is expected. Actually, the original regex has some issues. With .*, some version like 1.2.3.4 is allowed, but we only allow major.minor.patch, which is 1.2.3 is allowed. And our new regex will allow both 1.2 or 1.2.3, but 1.2.3.4 is not allowed.

@zhoxing-ms
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

@zhoxing-ms zhoxing-ms merged commit a549b82 into Azure:dev May 16, 2022
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