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

feat: exit early on invalid k8s version flag #210

Closed
wants to merge 9 commits into from

Conversation

levenleven
Copy link
Contributor

Exit early if provided kubernetes version is not in expected format.

Resolves #119

@yannh
Copy link
Owner

yannh commented Jul 9, 2023

I like it, small and nice improvement :) I might add a small acceptance test before merging this.

blackjid and others added 6 commits July 9, 2023 13:49
The in page link to the CustomResourceDefinition (CRD) Support section is not working
- Add missing 'junit' and 'pretty' output formats.
- Use quotes vs. backticks around command name
This is an alternative way to fix yannh#130.
Instead of changing the `group` variable content, this commit adds
a new variable `fullgroup` that does not split the group components.

With this, users can specify the filename format like:

    FILENAME_FORMAT='{fullgroup}-{version}-{kind}'
This is a follow-up to yannh#219 to add a short description on how to use the `fullgroup` variable.
@yannh
Copy link
Owner

yannh commented Jul 9, 2023

I realised it behaves slightly differently than when passing an incorrect -schema-location - in which case it doesn't print the help, and now I am trying to see if I can implement this using the new flags.TextVar which seems like it could provide an elegant solution, but I've not played with this before 🙈

@yannh
Copy link
Owner

yannh commented Jul 9, 2023

Raaaah git be damned I guess I messed up somewhere when rebasing, sorry :( Can you check the last 2 commits and lmk what you think?

@levenleven
Copy link
Contributor Author

LGTM, Thanks!

@yannh
Copy link
Owner

yannh commented Dec 24, 2023

merged #254 👍

@yannh yannh closed this Dec 24, 2023
@levenleven levenleven deleted the kube-version-validation branch December 25, 2023 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants