-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
remove broken --version flag, replace by version command #1956
Conversation
@bjorand: This issue is currently awaiting triage. If kube-state-metrics contributors determine this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Welcome @bjorand! |
There are currently two ways to show the version: via a version command and via a version flag. The |
Is the help text of the command sufficient for users to find out they need to use |
I agree. I removed the broken --version flag and we now have only the version command (which is documented in the help message) |
Can you also remove the version flag from |
done in 57a196b |
I think this change only updated the markdown file and not the help.txt. |
help.txt is in .gitignore |
Ah my mistake. I looked at my local checkout. /approve Thanks! |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bjorand, mrueg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
--version
flag is broken in 2.7.0. It should return the version instead of trying to run kube-state-metrics.here is the current broken behaviour:
with this fix:
Note that I'm also removing useless code.