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: sanitize helm version string by removing leading 'v' characters #25

Merged
merged 5 commits into from
Sep 4, 2024

Conversation

robbje
Copy link

@robbje robbje commented Sep 4, 2024

As detailed here some helm versions report their short version string without leading 'v'. In that case, fluvio-helm will throw away the first digit of the major version.

This PR strips all leading 'v's, if they exist and adds a small unit test. I refrained from pulling in semver as dev dependency to test with semver, but this might be the better option.

@digikata
Copy link
Collaborator

digikata commented Sep 4, 2024

Thanks for the PR (and all the clippy fixes) @robbje

@digikata digikata merged commit 9f63dd0 into infinyon:main Sep 4, 2024
5 checks passed
@digikata digikata self-requested a review September 4, 2024 22:01
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