-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
etcdctl: fix json output #19469
base: main
Are you sure you want to change the base?
etcdctl: fix json output #19469
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kstrifonoff The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @kstrifonoff. Thanks for your PR. I'm waiting for a etcd-io 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-sigs/prow repository. |
4de0af7
to
237116d
Compare
237116d
to
d39583f
Compare
/cc @ivanvc |
Hi @kstrifonoff, thanks for the pull request. I'm respectful to the original contributor who asked to work on this. Our guideline is to re-assign after a week of no answer when asking a contributor for updates. A couple of suggestions by quickly looking at the code.
Thanks again for your pull request :) |
240d3a0
to
b1cc94c
Compare
1510dc9
to
db2b56f
Compare
Hi @ivanvc , I’ve made some changes to my initial suggestions based on your feedback. Now, the “JSON with Hex” implementation is just a slight extension of the default “printJSON” implementation. I think it should probably be moved into the “utils” package. Here are a few things I noticed:
|
/ok-to-test |
The e2e tests already exist, my suggestion is to expand them to cover the new cases you added: etcd/tests/e2e/ctl_v3_member_test.go Lines 206 to 255 in 9f1709e
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
... and 24 files with indirect coverage changes @@ Coverage Diff @@
## main #19469 +/- ##
==========================================
+ Coverage 68.87% 68.94% +0.06%
==========================================
Files 420 421 +1
Lines 35788 35893 +105
==========================================
+ Hits 24648 24745 +97
- Misses 9714 9725 +11
+ Partials 1426 1423 -3 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Signed-off-by: Kirill Trifonov <kstrifonoff@gmail.com>
db2b56f
to
3c14ffe
Compare
@kstrifonoff: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
Fix #19262