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 regex patter to validate kubectl version #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pedrolacerda
Copy link

This pull request primarily focuses on modifying the validateKubectlVersion function in the src/commands/validate.js file. The change made is to the regular expression used for parsing the version of kubectl from the command output. The new regular expression specifically targets the client version string in the output.

GitVersion doesn't correspond to the output of the kubectl version --client command. The current regular expression is not able to parse the client version string correctly. This change will ensure that the version string is correctly parsed and validated.

`GitVersion` doesn't correspond to the output of the `kubectl version --client` command
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.

1 participant