Skip to content

Conversation

@micheleRP
Copy link
Contributor

@micheleRP micheleRP commented Apr 28, 2025

Description

This pull request adds steps for enabling data transforms in Redpanda Cloud using rpk.

  • Enhanced instructions for enabling data transforms: Added step-by-step guidance on how to enable the data_transforms_enabled cluster property using rpk or the Cloud API, including commands for setting the property and restarting brokers.
  • Improved structure and readability: Introduced tabs for rpk and Cloud API instructions.

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

Page previews

Enable Data Transforms (in Redpanda Cloud)

Checks

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

Summary by CodeRabbit

  • Documentation
    • Expanded instructions for enabling data transforms on cloud clusters, now including both rpk CLI and Cloud API methods.
    • Added step-by-step guide for enabling via rpk with improved formatting using a tabbed interface.
    • Enhanced visual separation and clarity in the documentation for better user guidance.

@micheleRP micheleRP requested a review from a team as a code owner April 28, 2025 23:40
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Apr 28, 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 documentation for enabling data transforms on cloud clusters was updated to provide more comprehensive instructions. It now details two distinct methods—using the rpk CLI and the Cloud API—for enabling data transforms. The guide introduces step-by-step instructions for each method, organizes them into a tabbed interface for clarity, and adds visual separators for improved formatting. No changes were made to the underlying logic or APIs; the update is limited to documentation structure and completeness.

Changes

File(s) Change Summary
modules/develop/pages/data-transforms/build.adoc Expanded documentation to include detailed, step-by-step instructions for enabling data transforms via both rpk CLI and Cloud API; organized content into a tabbed interface with improved formatting and visual separators; minor formatting fix to JavaScript SDK note.

Poem

In the docs, new tabs appear,
With steps for all to see—
Enable transforms, crystal clear,
With rpk or API.
A hop, a skip, instructions neat,
Now clusters dance to a data beat!
🐇✨

Assessment against linked issues

Objective Addressed Explanation
Add steps to enable data transforms with rpk CLI (DOC-1282)

🪧 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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.

@netlify
Copy link

netlify bot commented Apr 28, 2025

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 719db8e
🔍 Latest deploy log https://app.netlify.com/sites/redpanda-docs-preview/deploys/681151dade57f60008e3b4eb
😎 Deploy Preview https://deploy-preview-1092--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 site configuration.

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

🧹 Nitpick comments (4)
modules/develop/pages/data-transforms/build.adoc (4)

25-26: Suggestion: Correct grammar for consistency
Change the sentence to:
“Data transforms are disabled on all clusters by default.”
This aligns with plural usage of “transforms.”


27-29: Refine tab label formatting
The tab label uses backticks around rpk, but other tabs (e.g., Go::, Rust::) use plain text. To maintain consistency and ensure proper rendering, remove the backticks:

- `rpk`::
+ rpk::

37-44: Unify code block syntax and list continuation
The restart steps mix list items with AsciiDoc and Markdown. Use AsciiDoc list continuation and a [source,bash] block:

-. Restart all brokers:
-+
-[,bash]
-----
-rpk redpanda stop
-rpk redpanda start
-----
+. Restart all brokers::
++
+[source,bash]
+----
+rpk redpanda stop
+rpk redpanda start
+----

51-69: Ensure consistent AsciiDoc code fencing and indentation
For the Cloud API curl snippet, use the standard [source,bash] block and align header flags under the curl command for readability:

-,bash]
-----
-# Store your cluster ID in a variable
-export RP_CLUSTER_ID=<cluster-id>
-
-# Retrieve a Redpanda Cloud access token
-export RP_CLOUD_TOKEN=`curl -X POST "https://auth.prd.cloud.redpanda.com/oauth/token" \
-    -H "content-type: application/x-www-form-urlencoded" \
-    -d "grant_type=client_credentials" \
-    -d "client_id=<client-id>" \
-    -d "client_secret=<client-secret>"`
-
-# Update cluster configuration to enable data transforms
-curl -H "Authorization: Bearer ${RP_CLOUD_TOKEN}" -X PATCH \
-  "https://api.cloud.redpanda.com/v1/clusters/${RP_CLUSTER_ID}" \
- -H 'accept: application/json'\
- -H 'content-type: application/json' \
- -d '{"cluster_configuration":{"custom_properties": {"data_transforms_enabled":true}}}'
-----
+[source,bash]
+----
+# Store your cluster ID in a variable
+export RP_CLUSTER_ID=<cluster-id>
+
+# Retrieve a Redpanda Cloud access token
+export RP_CLOUD_TOKEN=$(curl -s -X POST "https://auth.prd.cloud.redpanda.com/oauth/token" \
+  -H "content-type: application/x-www-form-urlencoded" \
+  -d "grant_type=client_credentials" \
+  -d "client_id=<client-id>" \
+  -d "client_secret=<client-secret>")
+
+# Update cluster configuration to enable data transforms
+curl -s -H "Authorization: Bearer ${RP_CLOUD_TOKEN}" -X PATCH \
+  "https://api.cloud.redpanda.com/v1/clusters/${RP_CLUSTER_ID}" \
+  -H "accept: application/json" \
+  -H "content-type: application/json" \
+  -d '{"cluster_configuration":{"custom_properties":{"data_transforms_enabled":true}}}'
+----
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 2e1e840 and 0ca79c1.

📒 Files selected for processing (1)
  • modules/develop/pages/data-transforms/build.adoc (2 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

Copy link
Contributor

@asimms41 asimms41 left a comment

Choose a reason for hiding this comment

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

LGTM!

@simon0191 simon0191 requested a review from alenkacz April 29, 2025 16:48
Copy link
Member

@simon0191 simon0191 left a comment

Choose a reason for hiding this comment

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

LGTM

@micheleRP micheleRP merged commit bc1decc into main Apr 29, 2025
8 checks passed
@micheleRP micheleRP deleted the DOC-1282-rpk-cluster-config-for-cloud-wasm branch April 29, 2025 22:29
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.

5 participants