Skip to content

docs: add rpk config list#1259

Merged
paulohtb6 merged 4 commits intomainfrom
rpk-config-list
Aug 1, 2025
Merged

docs: add rpk config list#1259
paulohtb6 merged 4 commits intomainfrom
rpk-config-list

Conversation

@paulohtb6
Copy link
Copy Markdown
Contributor

@paulohtb6 paulohtb6 commented Jul 31, 2025

Description

Resolves https://redpandadata.atlassian.net/browse/DOC-1537
Review deadline: 4th Aug

Page previews

https://deploy-preview-1259--redpanda-docs-preview.netlify.app/current/reference/rpk/rpk-cluster/rpk-cluster-config-list/

Checks

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

@paulohtb6 paulohtb6 requested a review from a team as a code owner July 31, 2025 16:36
@netlify
Copy link
Copy Markdown

netlify bot commented Jul 31, 2025

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 59d55c2
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/688ba6207a77d40008fc7849
😎 Deploy Preview https://deploy-preview-1259--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.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jul 31, 2025

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.

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

📝 Walkthrough

Walkthrough

A new documentation page for the rpk cluster config list command has been introduced, detailing its usage, flags, and examples. Additionally, the navigation index file has been updated to include a cross-reference to this new documentation page within the rpk-cluster-config section. No changes to code, APIs, or other documentation structures were made.

Sequence Diagram(s)

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • r-vasquez
  • micheleRP
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch rpk-config-list

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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: 1

🧹 Nitpick comments (2)
modules/reference/pages/rpk/rpk-cluster/rpk-cluster-config-list.adoc (2)

30-35: Add an example for the wide output format

wide is listed as a valid --format option but not demonstrated. A quick example keeps the page symmetrical with the JSON and YAML sections and avoids user confusion.

List configuration properties in wide format:

[,bash]
----
rpk cluster config list --format=wide
----

44-65: Table could benefit from “Default” column to highlight implicit behaviour

Several flags (--format, --filter, --all) have meaningful defaults. Surfacing them directly in the table (for example by adding a Default column or appending “(default: …)” to descriptions) improves scannability and aligns with neighbouring rpk docs.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f417e45 and dc42608.

📒 Files selected for processing (2)
  • modules/ROOT/nav.adoc (1 hunks)
  • modules/reference/pages/rpk/rpk-cluster/rpk-cluster-config-list.adoc (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: kbatuigas
PR: redpanda-data/docs#1113
File: modules/manage/partials/iceberg/use-iceberg-catalogs.adoc:100-107
Timestamp: 2025-05-07T01:06:00.937Z
Learning: In AsciiDoc documentation for Redpanda, the syntax `+` and `--` around content blocks within a `[tabs]` section are valid AsciiDoc formatting elements for tabbed content. The `+` after a tab name (like `rpk::`) indicates that the following block belongs to that tab, and the `--` markers enclose the content for that tab. These are not diff artifacts and should not be removed.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Redirect rules - redpanda-docs-preview
  • GitHub Check: Header rules - redpanda-docs-preview
  • GitHub Check: Pages changed - redpanda-docs-preview
🔇 Additional comments (1)
modules/ROOT/nav.adoc (1)

274-277: Navigation entry correctly positioned – LGTM

The new rpk-cluster-config-list.adoc reference is alphabetically placed between import and lint, matching the existing ordering convention. No further action required.

Comment on lines +58 to +59
|--config |string |Redpanda or `rpk` config file; default search paths are `/var/lib/redpanda/.config/rpk/rpk.yaml`, `$PWD/redpanda.yaml`, and `/etc/redpanda/redpanda.yaml`.

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.

⚠️ Potential issue

Incorrect default config path – points to container location, not user config

/var/lib/redpanda/.config/rpk/rpk.yaml is container-specific and differs from the path ~/.config/rpk/rpk.yaml used on most hosts. Leaving it as-is can mislead users running rpk locally.

-|--config |string |Redpanda or `rpk` config file; default search paths are `/var/lib/redpanda/.config/rpk/rpk.yaml`, `$PWD/redpanda.yaml`, and `/etc/redpanda/redpanda.yaml`.
+|--config |string |Redpanda or `rpk` config file; default search paths are `~/.config/rpk/rpk.yaml`, `$PWD/redpanda.yaml`, and `/etc/redpanda/redpanda.yaml`.
🤖 Prompt for AI Agents
In modules/reference/pages/rpk/rpk-cluster/rpk-cluster-config-list.adoc at lines
58-59, update the default config file path from the container-specific
`/var/lib/redpanda/.config/rpk/rpk.yaml` to the user-specific
`~/.config/rpk/rpk.yaml` to correctly reflect the typical local user
configuration location and avoid confusion.

@paulohtb6
Copy link
Copy Markdown
Contributor Author

Related cloud PR redpanda-data/cloud-docs#372

Copy link
Copy Markdown
Contributor

@Feediver1 Feediver1 left a comment

Choose a reason for hiding this comment

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

lgtm

@paulohtb6 paulohtb6 merged commit 9332f3d into main Aug 1, 2025
7 checks passed
@paulohtb6 paulohtb6 deleted the rpk-config-list branch August 1, 2025 18:32
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.

3 participants