Skip to content

DOC-2204: Update rpk-debug-bundle example syntax#1720

Open
Feediver1 wants to merge 3 commits into
mainfrom
Feediver1-patch-7
Open

DOC-2204: Update rpk-debug-bundle example syntax#1720
Feediver1 wants to merge 3 commits into
mainfrom
Feediver1-patch-7

Conversation

@Feediver1
Copy link
Copy Markdown
Contributor

@Feediver1 Feediver1 commented May 27, 2026

Description

Resolves https://redpandadata.atlassian.net/browse/DOC-2204
Review deadline:

Page previews

Checks

  • New feature
  • Content gap
  • Support Follow-up
  • Small fix (typos, links, copyedits, etc)

@Feediver1 Feediver1 requested a review from a team as a code owner May 27, 2026 14:52
@Feediver1 Feediver1 requested a review from JFlath May 27, 2026 14:52
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 27, 2026

Review Change Stack

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 33f1a0d3-2c68-4563-ac93-505b2e8e339a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This PR updates the documentation for the rpk debug bundle command in a single Asciidoc file. The partition flag documentation is rewritten to clarify the accepted format as <namespace>/[topic]/[partition...] with an optional namespace defaulting to kafka, and the flag name is changed from --partitions to --partition. Example invocations are updated to reflect the new syntax, including examples like foo/1,2,3 and _redpanda-internal/bar/2. Additionally, the single-source directive termination is adjusted with an explicit comment.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • redpanda-data/docs#1125: Both PRs update Asciidoc documentation for rpk command flags involving --partition syntax and descriptions.
  • redpanda-data/docs#1453: Both PRs update the rpk-debug-bundle.adoc file with flag behavior changes for the same command.

Suggested reviewers

  • micheleRP
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title directly references the Jira ticket (DOC-2204) and clearly summarizes the main change: updating example syntax in rpk-debug-bundle documentation.
Description check ✅ Passed The description follows the required template structure, includes the Jira ticket resolution link, and has the review type checkbox marked (Support Follow-up). However, page previews section is incomplete.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch Feediver1-patch-7

Comment @coderabbitai help to get the list of available commands and usage tips.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 27, 2026

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 1310dd3
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/6a174b2728ae440008733ace
😎 Deploy Preview https://deploy-preview-1720--redpanda-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@modules/reference/pages/rpk/rpk-debug/rpk-debug-bundle.adoc`:
- Line 62: Update the example flag syntax in rpk-debug-bundle.adoc to remove the
misleading colon after the flag name: replace instances of "--partition:
foo/1,2,3" and "--partition: _redpanda-internal/bar/2" with standard CLI forms
such as "--partition foo/1,2,3" or "--partition=foo/1,2,3", or alternatively
show the full command (e.g. "rpk debug bundle --partition foo/1,2,3") or add a
short label like "Value: `foo/1,2,3`" to clarify the intended value; ensure all
occurrences (including the other noted instance) are updated consistently.
- Line 56: The format string currently shows
`<namespace>/[topic]/[partition...]` which incorrectly implies the topic is
optional; update the notation so the optional part is the namespace prefix
instead (e.g., `[<namespace>/]topic/[partition...]`): remove square brackets
around `topic`, wrap the `namespace/` segment in brackets, and update the
explanatory sentence and examples in rpk-debug-bundle.adoc to match this
corrected format.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ca89bebc-aec5-449e-b4dd-83a0928e0809

📥 Commits

Reviewing files that changed from the base of the PR and between f2d3af3 and 12b59e5.

📒 Files selected for processing (1)
  • modules/reference/pages/rpk/rpk-debug/rpk-debug-bundle.adoc

You can provide a list of partitions to save additional admin API requests specifically for those partitions.

The partition flag accepts the format `<namespace>/[topic]/[partitions...]` where the namespace is optional, if the namespace is not provided, `rpk` will assume 'kafka'. For example:
The partition flag accepts the format `<namespace>/[topic]/[partition...]` where the namespace is optional, if the namespace is not provided, `rpk` will assume 'kafka'. For example:
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot May 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Clarify the format notation for partition flag.

The format <namespace>/[topic]/[partition...] uses square brackets around topic, which conventionally indicates optional components. However, the examples on lines 62 and 68 demonstrate that the topic is required. The square brackets should wrap the optional namespace prefix instead.

📝 Proposed fix for format notation
-The partition flag accepts the format `<namespace>/[topic]/[partition...]` where the namespace is optional, if the namespace is not provided, `rpk` will assume 'kafka'. For example:
+The partition flag accepts the format `[namespace/]topic/partition[,partition...]` where the namespace is optional. If the namespace is not provided, `rpk` will assume 'kafka'. For example:
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
The partition flag accepts the format `<namespace>/[topic]/[partition...]` where the namespace is optional, if the namespace is not provided, `rpk` will assume 'kafka'. For example:
The partition flag accepts the format `[namespace/]topic/partition[,partition...]` where the namespace is optional. If the namespace is not provided, `rpk` will assume 'kafka'. For example:
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@modules/reference/pages/rpk/rpk-debug/rpk-debug-bundle.adoc` at line 56, The
format string currently shows `<namespace>/[topic]/[partition...]` which
incorrectly implies the topic is optional; update the notation so the optional
part is the namespace prefix instead (e.g.,
`[<namespace>/]topic/[partition...]`): remove square brackets around `topic`,
wrap the `namespace/` segment in brackets, and update the explanatory sentence
and examples in rpk-debug-bundle.adoc to match this corrected format.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JFlath Is this correct? Not part of your request, but CodeRabbit caught.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!

Comment thread modules/reference/pages/rpk/rpk-debug/rpk-debug-bundle.adoc Outdated
Comment thread modules/reference/pages/rpk/rpk-debug/rpk-debug-bundle.adoc Outdated
Comment thread modules/reference/pages/rpk/rpk-debug/rpk-debug-bundle.adoc Outdated
Feediver1 added 2 commits May 27, 2026 09:59
Co-authored-by: Joyce Fee <102751339+Feediver1@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant