Skip to content

Conversation

@kbatuigas
Copy link
Contributor

@kbatuigas kbatuigas commented May 21, 2025

Description

This pull request introduces changes to support documenting the integration of Redpanda topics with Snowflake using Iceberg tables. Key updates include switching the branch for the cloud-docs repository in the Antora playbook, adding
conditional instructions for Redpanda Cloud users, and enhancing topic configuration details for Iceberg integration.

See accompanying cloud PR: redpanda-data/cloud-docs#302

Below is a breakdown of the most important changes:

Antora Playbook Update

  • Updated the branch for the cloud-docs repository in local-antora-playbook.yml to DOC-1389-cloud-snowflake-secrets-doc, replacing the previous main branch.

Documentation Enhancements for Iceberg-Snowflake Integration

  • Prerequisites Section: Added conditional instructions for Redpanda Cloud users to use rpk or the Cloud API for secrets management and cluster configuration. Non-cloud users are directed to configure object storage and enable Tiered Storage.
  • Cluster Configuration: Introduced step-by-step instructions for enabling Iceberg and setting catalog integration properties, with separate guidance for Redpanda Cloud and non-cloud environments. Cloud-specific instructions include using rpk, the Control Plane API, or the Data Plane API.
  • Topic Configuration: Enhanced details on enabling Iceberg mode for topics, including additional methods for Redpanda Cloud users, such as using the Cloud UI or Data Plane API.

Code Tagging

  • Added // tag::single-source[] and // end::single-source[] markers to encapsulate the single-source documentation section. [1] [2]

Resolves https://redpandadata.atlassian.net/browse/
Review deadline:

Page previews

Cloud: https://deploy-preview-1131--redpanda-docs-preview.netlify.app/redpanda-cloud/manage/iceberg/redpanda-topics-iceberg-snowflake-catalog/

Checks

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

@kbatuigas kbatuigas requested a review from a team as a code owner May 21, 2025 00:05
@netlify
Copy link

netlify bot commented May 21, 2025

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 8ee8b29
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/682d65152ae72800087390f1
😎 Deploy Preview https://deploy-preview-1131--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
Contributor

coderabbitai bot commented May 21, 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 changes update the Antora playbook configuration to source documentation content from a specific feature branch (DOC-1389-cloud-snowflake-secrets-doc) of the cloud-docs repository instead of the main branch. Additionally, the Iceberg and Snowflake catalog integration documentation is revised to provide conditional instructions for cloud and non-cloud environments. Cloud-specific sections now include detailed steps for managing secrets, using the Redpanda Cloud API, and configuring clusters and topics via multiple methods. Non-cloud instructions remain largely unchanged, and formatting improvements and clarifications are included.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Documentation
    participant Redpanda Cloud
    participant rpk/Cloud API

    User->>Documentation: Access Snowflake integration guide
    alt Cloud environment
        Documentation->>User: Show cloud-specific prerequisites and steps
        User->>Redpanda Cloud: Manage secrets via rpk/Cloud API
        User->>Redpanda Cloud: Configure cluster and topics (rpk/Cloud UI/API)
    else Non-cloud environment
        Documentation->>User: Show non-cloud prerequisites and steps
        User->>Redpanda: Update static configuration and restart cluster
        User->>Redpanda: Configure topics via rpk
    end
Loading

Assessment against linked issues

Objective Addressed Explanation
Update Snowflake doc to include Azure BYOC integration steps, S3 bucket info in UI, and secrets reference (DOC-1389)

Possibly related PRs

Suggested reviewers

  • micheleRP
  • alenkacz

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

🔭 Outside diff range comments (2)
modules/manage/pages/iceberg/redpanda-topics-iceberg-snowflake-catalog.adoc (2)

27-34: ⚠️ Potential issue

Correct AsciiDoc block delimiters for IAM setup steps
The list of IAM setup steps is wrapped with -- delimiters, which are not standard AsciiDoc block markers. Replace with ---- for a literal block, or remove delimiters and rely on the .-prefixed list syntax:

- --
- . If you don't already have one, create an IAM policy that gives Open Catalog read and write access to your S3 bucket.
- . Create an IAM role and attach the IAM policy to the role.
- . After creating a new catalog in Open Catalog, grant the catalog's AWS IAM user access to the S3 bucket.
- --
+ ----
+ . If you don't already have one, create an IAM policy that gives Open Catalog read and write access to your S3 bucket.
+ . Create an IAM role and attach the IAM policy to the role.
+ . After creating a new catalog in Open Catalog, grant the catalog's AWS IAM user access to the S3 bucket.
+ ----

99-134: 🛠️ Refactor suggestion

Align non-cloud IAM and configuration blocks with AsciiDoc conventions
The non-cloud section also uses -- around placeholder lists. Replace these with standard AsciiDoc block markers or remove them:

- --
- - `<snowflake-orgname>` and `<open-catalog-account-name>`: Your Open Catalog account URI...
- --
+ ----
+ - `<snowflake-orgname>` and `<open-catalog-account-name>`: Your Open Catalog account URI...
+ ----

Additionally, elevate the “You must restart your cluster” instruction into an important note (e.g., IMPORTANT: or an admonition) to ensure users don’t overlook it.

🧹 Nitpick comments (3)
local-antora-playbook.yml (1)

19-21: Verify branch update in Antora playbook and maintain type consistency
The branches for the cloud-docs source has been changed to a quoted scalar. Confirm that the branch DOC-1389-cloud-snowflake-secrets-doc exists in the remote repository. For consistency with other branches entries that use list syntax or unquoted scalars, consider:

-    branches: 'DOC-1389-cloud-snowflake-secrets-doc'
+    branches: [DOC-1389-cloud-snowflake-secrets-doc]
modules/manage/pages/iceberg/redpanda-topics-iceberg-snowflake-catalog.adoc (2)

16-23: Validate Asciidoctor conditional blocks and bullet clarity
The new ifdef::env-cloud[] / ifndef::env-cloud[] sections correctly split cloud vs. non-cloud prerequisites. Ensure the env-cloud attribute is defined in the playbook so the correct content renders.
Additionally, refine the new bullet for consistency:

  • Change
    "You need the S3 bucket URI, so you can configure it as external storage for Open Catalog."
    to
    "You need the S3 bucket URI to configure it as external storage for Open Catalog."

68-98: Review cloud cluster configuration code blocks and placeholders
The cloud-specific cluster configuration section correctly uses continuation markers (+) before the [,bash] and [,bash,role=no-copy] blocks. Confirm the placeholders (<snowflake-orgname>, <open-catalog-account-name>, etc.) match the examples provided. For readability, consider breaking the long rpk cluster config set line into multiple lines or indenting parameters in the generated output.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 9f3d6c1 and 646a70f.

📒 Files selected for processing (2)
  • local-antora-playbook.yml (1 hunks)
  • modules/manage/pages/iceberg/redpanda-topics-iceberg-snowflake-catalog.adoc (4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: Redirect rules - redpanda-docs-preview
  • GitHub Check: Header rules - redpanda-docs-preview
  • GitHub Check: Pages changed - redpanda-docs-preview
🔇 Additional comments (2)
modules/manage/pages/iceberg/redpanda-topics-iceberg-snowflake-catalog.adoc (2)

10-11: Ensure single-source tagging is correctly recognized
The // tag::single-source[] marker has been added to denote the start of the single-source section. Verify that your Antora tooling and custom extensions recognize these comment tags and properly include/exclude the enclosed content.


274-274: Confirm single-source section closure
The // end::single-source[] tag correctly closes the single-source block. Ensure there are no stray characters or whitespace before or after this line that could prevent the tag from being recognized.

@kbatuigas kbatuigas requested a review from mattschumpert May 21, 2025 00:28
Copy link
Contributor

@micheleRP micheleRP left a comment

Choose a reason for hiding this comment

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

lgtm!

@kbatuigas kbatuigas merged commit 82d63e1 into main May 21, 2025
7 checks passed
@kbatuigas kbatuigas deleted the DOC-1389-Iceberg-on-Cloud-Single-source-Snowflake-doc branch May 21, 2025 05:36
@coderabbitai coderabbitai bot mentioned this pull request Jun 6, 2025
4 tasks
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.

4 participants