Skip to content

DOC-1560 conditionalize out rpk cluster config list for Cloud#1278

Merged
micheleRP merged 2 commits intomainfrom
DOC-1560-conditionalize-out-rpk-cluster-config-edit-for-Cloud
Aug 5, 2025
Merged

DOC-1560 conditionalize out rpk cluster config list for Cloud#1278
micheleRP merged 2 commits intomainfrom
DOC-1560-conditionalize-out-rpk-cluster-config-edit-for-Cloud

Conversation

@micheleRP
Copy link
Copy Markdown
Contributor

@micheleRP micheleRP commented Aug 4, 2025

Description

This pull request updates the documentation for the rpk cluster config list command to clarify usage instructions:

  • Split the usage instructions into separate lines for clarity and readability.
  • Added a conditional (ifndef::env-cloud[] ... endif::env-cloud[]) so that the reference to rpk cluster config edit for interactive editing only appears when not in a cloud environment.

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

Page previews

rpk cluster config list in SM
rpk cluster config list in Cloud

Checks

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

@micheleRP micheleRP requested a review from a team as a code owner August 4, 2025 23:24
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 4, 2025

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit a2e5cad
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/689143d8d128dc00086f75c1
😎 Deploy Preview https://deploy-preview-1278--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 Aug 4, 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

The change updates the documentation for the rpk cluster config list command. The descriptive text is split into multiple sentences for clarity. A conditional is added so that the reference to the rpk cluster config edit command is only included when the env-cloud environment variable is not set, ensuring that the edit command is not suggested in cloud environments. No other content, such as usage, examples, or flags, is changed.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Assessment against linked issues

Objective Addressed Explanation
Conditionalize out rpk cluster config edit reference for Cloud (DOC-1560)

Possibly related PRs

  • docs: add rpk config list #1259: Both PRs involve documentation changes for the rpk cluster config list command, including improvements and navigation updates.
  • Rpk cluster config edits #1143: Both PRs update rpk cluster config documentation with conditional content based on environment, focusing on cloud compatibility.

Suggested reviewers

  • kbatuigas
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch DOC-1560-conditionalize-out-rpk-cluster-config-edit-for-Cloud

🪧 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.
  • 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.

Support

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

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

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

8-10: Add an inline comment explaining why the clause is conditional

Future contributors may not recall that the edit command is unavailable in Cloud, leading to accidental removal or modification of this guard. A short AsciiDoc comment right above the ifndef would provide valuable context.

+// This command is not available in Cloud; preserve guard to avoid broken xref (DOC-1560).
 ifndef::env-cloud[]
 Use xref:reference:rpk/rpk-cluster/rpk-cluster-config-edit.adoc[`rpk cluster config edit`] for interactive editing.
 endif::env-cloud[]
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 42cf1af and dd87c75.

📒 Files selected for processing (1)
  • modules/reference/pages/rpk/rpk-cluster/rpk-cluster-config-list.adoc (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: in asciidoc documentation for redpanda, the syntax `+` and `--` around content blocks within a `[tab...
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.

Applied to files:

  • modules/reference/pages/rpk/rpk-cluster/rpk-cluster-config-list.adoc
⏰ 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/reference/pages/rpk/rpk-cluster/rpk-cluster-config-list.adoc (1)

8-10: Conditional directive solves cloud-docs build break – LGTM

The ifndef::env-cloud[] … endif::env-cloud[] guard correctly removes the rpk cluster config edit xref for Cloud builds, preventing the broken cross-reference noted in DOC-1560. Syntax and placement are spot-on.

@micheleRP micheleRP merged commit c5f7c7b into main Aug 5, 2025
7 checks passed
@micheleRP micheleRP deleted the DOC-1560-conditionalize-out-rpk-cluster-config-edit-for-Cloud branch August 5, 2025 00:24
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.

2 participants