-
Notifications
You must be signed in to change notification settings - Fork 242
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
Improve help message for --last option #913
Conversation
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.
Hi 👋 and thanks for the PR @PriyaSharma9!
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.
@PriyaSharma9 the tests need to be updated accordingly, please run:
% make && ./hubble observe --help > cmd/observe_help.txt
At that point git diff
should show changes to the file related to your patch. The --config string
line should not be changed and should be kept as
--config string Optional config file (default "%s")
Once make test
is passing locally, you can update this PR by running
% git commit --amend
% git push --force-with-lease
@kaworu I see this in the diff, Is this ok other than the
|
It's this part:
The test code interpolates the expected value there, since it's dependent on the users-env. |
@chancez when I run
Now when ran
Not sure what I am missing here. |
You can't simply just redirect the output and git add. You need to modify the line with |
cmd/observe_help.txt
Outdated
--tls-client-cert-file string Path to the public key file for the client certificate to connect to a Hubble server (implies TLS). | ||
--tls-client-cert-file string Path to the public key file for the client certificate to connect to a Hubble server (implies TLS). | ||
The file must contain PEM encoded data. | ||
--tls-client-key-file string Path to the private key file for the client certificate to connect a Hubble server (implies TLS). | ||
--tls-client-key-file string Path to the private key file for the client certificate to connect a Hubble server (implies TLS). |
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.
I wonder why these lines are coming up in the diff 🤔
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.
It's whitespace. I suggested using git add -p
which makes it relatively easy to only update the relevant line that actually changed.
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.
Apologies! I had to work on certain priorities. Will try to get this sorted today.
Commit 9e0be4a does not contain "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/contributing/#developer-s-certificate-of-origin |
@kaworu I have removed those extra lines, Could you please help me with running the unit tests once. |
Signed-off-by: Priya Sharma <Priya.Sharma6693@gmail.com>
@PriyaSharma9 I git force pushed into your branch to remove the reverting commit and fix the observe help message, CI should pass now 🤞 |
Fixes #861
Adds additional tip for the below flag