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

ignore pre-release in version comparison #709

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

TheRealHaoLiu
Copy link
Member

@TheRealHaoLiu TheRealHaoLiu commented Dec 14, 2022

related to #708

GCP does not use proper semvar, example:

1.24.8-gke.401

AKS does the same thing

v1.21.14-eks-fb459a0

instead of using + for build metadata they use - which indicate pre-release

this PR will ignore -<prerelease tag> when doing version comparison

currently we have no clue if this mess with other "variants" of Kubernetes

GCP does not use proper semvar, example:

1.24.8-gke.401

instead of using + for build metadata they use -

this PR will ignore `-<prerelease tag>` when doing version comparison
@TheRealHaoLiu
Copy link
Member Author

DEBUG 2023/01/12 21:43:50 Kubernetes version v1.25.4-gke.2100 is at least v1.25.4, using reconnect support
DEBUG 2023/01/12 21:43:50 [IEAfM7DS] streaming stdout with reconnect support

tested greater version and lesser version and all works as expected

@fosterseth can i get a review

@TheRealHaoLiu TheRealHaoLiu merged commit 80dfd5a into ansible:devel Jan 12, 2023
@TheRealHaoLiu TheRealHaoLiu deleted the ignore-prerelease branch January 13, 2023 14:33
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.

2 participants