feat(cli): document skip ports behavior for tap (#1966)#2105
feat(cli): document skip ports behavior for tap (#1966)#2105Mike-4-prog wants to merge 6 commits intolinkerd:mainfrom
Conversation
Problem The ap command did not have a dedicated reference page in the docs, making it harder for users to understand usage, flags, and the --skip-port behavior. Solution Create content/2.19/reference/cli/tap.md including: - Usage examples for deployments and services - Flags table with --namespace, --output, --help - Notes about skipped ports and proxy behavior - Clear description of purpose and behavior Validation Tested locally by running hugo server -D in the docs repo. Verified that: - The tap page renders correctly - Usage and examples match official Linkerd 2.19 CLI documentation - Markdown formatting is consistent with other CLI pages Signed-off-by: MIKE-4-prog <uzukwuekene.michael@gmail.com>
|
Hmmmmm, have you run the commands in the doc? We probably don't want to document deprecated command forms... |
|
@kflynn @cratelyn I'll update the formatting (whitespace, line wrapping, and header spacing) I'll also double-check the command examples to ensure they match the Regarding the placement of this content, I'm happy to move it to the |
|
I've updated the Please let me know if you’d like any additional adjustments. |
Signed-off-by: MIKE-4-prog <uzukwuekene.michael@gmail.com>
c9c1c81 to
c63558d
Compare
cratelyn
left a comment
There was a problem hiding this comment.
thanks for addressing the feedback from before!
besides one lingering whitespace nit, this looks good. once we sort out a good home for this page (cc: @kflynn), we'll need to copy this content into linkerd.io/content/2-edge, and we'll be ready to merge this.
thank you again for taking the time to submit this, @Mike-4-prog!
|
https://linkerd.io/2.19/reference/cli/viz/#tap The discoverability of I haven't thought about this too much, but maybe we could show sub commands on the listing page, although before we decide on a solution we should understand how much additional content would be displayed. Another thing to note is that the content of the cli reference pages are pulled from |
|
@travisbeckham @cratelyn @kflynn My goal here was mainly to improve clarity around usage and flags (especially around skipped ports), but I agree that consistency across subcommands is important. I’m happy to adapt this in whatever way fits best — whether that means refining the existing viz page content, or restructuring how subcommands like I’ve also fixed the trailing whitespace issue in this PR. Please let me know how you’d prefer to proceed. |
Signed-off-by: MIKE-4-prog <uzukwuekene.michael@gmail.com>
|
@Mike-4-prog There is some precedence for supplementing the dynamic content with manual content. You can see an example in |
Thanks, @travisbeckham — this is really helpful. That makes sense to follow the existing pattern (like in viz routes) and avoid duplicating generated CLI reference content. I’ll move the skipped ports note into the tap section on the viz page and remove the standalone tap.md approach. I’ll leave flags, examples, and descriptions as-is since those should come from the main Linkerd repo. I’ll push an update shortly. |
…page Signed-off-by: MIKE-4-prog <uzukwuekene.michael@gmail.com>
|
@travisbeckham |
|
Thanks for making the change @Mike-4-prog. Instead of using a blockquote to highlight the content, we have a {{< note >}}If a pod is configured with the annotations
`config.linkerd.io/skip-inbound-ports` or
`config.linkerd.io/skip-outbound-ports`, traffic on those ports bypasses the
Linkerd proxy. Because `linkerd tap` observes traffic through the proxy,
**traffic on skipped ports cannot be tapped**.{{< /note >}} |
@travisbeckham Great! Will fix this shortly and revert back. Thank you. |
Signed-off-by: MIKE-4-prog <uzukwuekene.michael@gmail.com>
Thanks, @travisbeckham — updated to use the note shortcode. |
|
Thanks @Mike-4-prog! This looks good to me, although it will need to be copied to the |
@travisbeckham Great. Will wait for the final approval then. Also open to helping out in more docs task for this project and more as I see them. |
cratelyn
left a comment
There was a problem hiding this comment.
this looks good to me too! just one last little chore before this can be merged, @Mike-4-prog. thank you for opening up this fix, it will be very helpful to clarify this in our docs.
|
|
Thanks, @cratelyn. |
|
@cratelyn I think I mistakenly closed this PR earlier. I felt it was from the maintainers, upon checks I see the issue. My apologies about this. I have actually made those fixes...Do check again and let me know please |
it's alright, thank you for understanding! see one remaining comment above, here: #2105 (comment) we maintain distinct copies of the documentation for historical releases, and a |
Signed-off-by: MIKE-4-prog <uzukwuekene.michael@gmail.com>
Hi @cratelyn Thanks for the guidance! I’ve added the skipped-ports note to the 2-edge viz.md page, mirroring the placement in the 2.19 docs. Both versions now have the note immediately after the tap description. Please let me know if any further adjustments are needed before merging. Thanks again! |
|
ping @kflynn, i believe this should be ready for a final look 😌 |
Problem
The
tapcommand did not have a dedicated reference page in the docs, making it harder for users to understand usage, flags, and the--skip-portbehavior.Solution
Create
content/2.19/reference/cli/tap.mdincluding:Usage examples for deployments and services
Flags table with
--namespace,--output,--helpNotes about skipped ports and proxy behavior
Clear description of purpose and behavior
Validation
Tested locally by running
hugo server -Din the docs repo. Verified that:The
tappage renders correctlyUsage and examples match official Linkerd 2.19 CLI documentation
Markdown formatting is consistent with other CLI pages