-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Kubetest Version Addition #21276
Kubetest Version Addition #21276
Conversation
Hi @supriya-premkumar. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
e3de79e
to
4259c99
Compare
/assign @dims @spiffxp @BenTheElder |
/ok-to-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding this!
just a couple of minor comments, but the approach lgtm!
e4e1ccd
to
183d223
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for working on this change!
/approve
just a final comment before lgtm
kubetest/main.go
Outdated
@@ -289,6 +293,11 @@ func main() { | |||
log.Fatalf("Flags validation failed. err: %v", err) | |||
} | |||
|
|||
if o.version { | |||
log.Printf("kubetest version: %s", gitTag) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nit: since this is the expected output of the command this should be written to stdout :)
(and a newline) e.g. for something likekubetest --version 2>/dev/null
maybe fmt.Printf("kubetest version: %s\n", gitTag)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might've missed log
vs fmt
log defaults to stderr, fmt defaults to stdout.
- Adds version flag for kubetest - Adds kubetest version in metadata.json - Fixes 20886
183d223
to
b476601
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/lgtm
Thanks for working on this @supriya-premkumar!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: amwat, spiffxp, supriya-premkumar 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 |
Edited to drop the fixes part. We'll need more to plumb this through in kettle and testgrid |
Changes: