SQL for BYOVPC (GCP) - #646
Conversation
✅ Deploy Preview for rp-cloud ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
📝 WalkthroughWalkthroughThe SQL navigation now separates BYOC and BYOVPC enablement and adds a GCP-specific entry. The BYOC guide reflects AWS and GCP availability. A new page documents provisioning SQL-specific GCP resources, enabling SQL on new or existing BYOVPC clusters through Terraform or the Cloud API, polling operations, verifying readiness, and disabling SQL. It also describes catalog behavior, retained GCP resources, and next steps. Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Operator
participant BYOVPC Terraform module
participant Cloud API
participant BYOVPC cluster
Operator->>BYOVPC Terraform module: Enable SQL resource provisioning
BYOVPC Terraform module-->>Operator: Return SQL resource outputs
Operator->>Cloud API: Create or patch BYOVPC cluster with SQL configuration
Cloud API->>BYOVPC cluster: Start SQL deployment operation
BYOVPC cluster-->>Cloud API: Complete deployment operation
Operator->>BYOVPC cluster: Verify SQL readiness or connect with psql
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
david-yu
left a comment
There was a problem hiding this comment.
Thanks for the PR. I would smile the see if it's possible to also provide examples via terraform as well that shows how to provide those new permissions required by BYOVPC and SQL
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
modules/sql/pages/get-started/enable-sql-byovpc-gcp.adoc (1)
315-315: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick winDocument the required ordering before deleting SQL resources.
The disable operation is asynchronous, while the guide states that these resources are immutable while SQL is enabled. Tell users to wait until disabling completes before setting
enable_redpanda_sql = falseand applying Terraform; otherwise the apply may attempt to remove resources still referenced by the cluster.🤖 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/sql/pages/get-started/enable-sql-byovpc-gcp.adoc` at line 315, Update the SQL BYOVPC cleanup instructions to state that users must wait for the asynchronous SQL disable operation to complete before setting enable_redpanda_sql = false and running terraform apply. Preserve the existing options for reusing resources or destroying all BYOVPC resources, while making the ordering explicit to avoid removing resources still referenced by the cluster.
🤖 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/sql/pages/get-started/deploy-sql-cluster.adoc`:
- Line 17: Update the introductory NOTE in the deploy SQL cluster procedure so
its advertised provider scope matches the steps below: either add the
corresponding GCP/provider-neutral flow to the procedure, or restrict the NOTE
to AWS and retain the existing BYOVPC GCP references.
---
Nitpick comments:
In `@modules/sql/pages/get-started/enable-sql-byovpc-gcp.adoc`:
- Line 315: Update the SQL BYOVPC cleanup instructions to state that users must
wait for the asynchronous SQL disable operation to complete before setting
enable_redpanda_sql = false and running terraform apply. Preserve the existing
options for reusing resources or destroying all BYOVPC resources, while making
the ordering explicit to avoid removing resources still referenced by the
cluster.
🪄 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: 26a2ac36-974c-45d0-ba5b-ae32e29acbf3
📒 Files selected for processing (3)
modules/ROOT/nav.adocmodules/sql/pages/get-started/deploy-sql-cluster.adocmodules/sql/pages/get-started/enable-sql-byovpc-gcp.adoc
| * [ ] {learning-objective-3} | ||
|
|
||
| NOTE: Redpanda SQL is currently available only on BYOC clusters running on AWS. | ||
| NOTE: Redpanda SQL is available for BYOC clusters on AWS and GCP. For BYOVPC clusters, see xref:sql:get-started/enable-sql-byovpc-aws.adoc[AWS] or xref:sql:get-started/enable-sql-byovpc-gcp.adoc[GCP]. |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
Keep the advertised GCP support consistent with the procedure.
Line 17 now includes GCP, but the new-cluster console/API flow below is AWS-only (on AWS and CLOUD_PROVIDER_AWS). Add the GCP/provider-neutral flow, or scope this notice to AWS so GCP users are not sent into an incomplete procedure.
🤖 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/sql/pages/get-started/deploy-sql-cluster.adoc` at line 17, Update the
introductory NOTE in the deploy SQL cluster procedure so its advertised provider
scope matches the steps below: either add the corresponding GCP/provider-neutral
flow to the procedure, or restrict the NOTE to AWS and retain the existing
BYOVPC GCP references.
Description
This pull request adds comprehensive documentation for enabling Redpanda SQL on a Bring Your Own VPC (BYOVPC) cluster on GCP, including provisioning customer-managed resources, enabling/disabling the SQL engine, and verifying its status. The navigation structure is updated to include these new guides.
Documentation Additions and Navigation Updates:
enable-sql-byovpc-gcp.adoc, detailing how to provision required GCP resources, enable Redpanda SQL on a BYOVPC cluster using the Cloud API, verify the engine, and disable it if needed. The guide includes prerequisites, step-by-step instructions, important caveats, and next steps.nav.adocto add links for "Enable Redpanda SQL on BYOVPC" and specifically for GCP, improving discoverability and organization of SQL enablement documentation.Resolves https://github.com/redpanda-data/documentation-private/issues/
Review deadline: 27 July
Page previews
https://deploy-preview-646--rp-cloud.netlify.app/cloud-data-platform/sql/get-started/enable-sql-byovpc-gcp/
Checks