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

fix: kubernetes version check #13

Merged
merged 1 commit into from
Feb 2, 2024
Merged

fix: kubernetes version check #13

merged 1 commit into from
Feb 2, 2024

Conversation

lucaspin
Copy link
Collaborator

@lucaspin lucaspin commented Feb 1, 2024

Issue

The client-go library sometimes exposes versions that are not proper numbers. For example:

Server Version: version.Info{Major:"1", Minor:"23+", GitVersion:"v1.23.17-eks-c12679a"

Solution

Use https://github.com/hashicorp/go-version and the GitVersion exposed by client-go, instead of trying to do integer parsing on the major/minor fields.

@lucaspin lucaspin merged commit 25f166f into main Feb 2, 2024
1 check passed
@lucaspin lucaspin deleted the fix-version-check branch February 2, 2024 18:16
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