fix(DOC-1958): add lifecycle ignore_changes guidance and prose cleanup#533
Conversation
- Add lifecycle block example for throughput_tier to prevent accidental cluster replacement when Redpanda Support upgrades a cluster - Rewrite opening sentence to remove weak verbs - Cut throat-clearing prose throughout (234 net word reduction) - Fix passive voice, future tense, e.g./etc., and Title Case violations - Tighten callout <1> from 9 sentences to 3 - Replace placeholder "your-secret-password" with "schema-registry-password" Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
✅ Deploy Preview for rp-cloud ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThis pull request updates the Terraform provider documentation file with refined phrasing, improved capitalization consistency, and clarified technical content. Changes include replacing placeholder credentials with more generic equivalents, expanding the Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@modules/manage/pages/terraform-provider.adoc`:
- Line 660: Update the NOTE that currently reads "Terraform deletes a cluster
that depends on a network after it deletes the network" to correctly state
deletion order for dependent resources: the dependent resource (cluster) is
destroyed first, then its dependency (network). Locate the note text string
"NOTE: Terraform deletes dependent resources in the correct order. For example,
Terraform removes a cluster that depends on a network after it deletes the
network." and rephrase it so the example reads that Terraform removes the
cluster first and then the network.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e2a15053-62d3-4632-a437-bf3a32c50aa7
📒 Files selected for processing (1)
modules/manage/pages/terraform-provider.adoc
|
@mfernest Please add the SME reviewer! |
…ck language tag - Correct the dependency deletion-order example in the 'Delete resources' NOTE (line 757). Terraform destroys the *dependent* resource (cluster) before its *dependency* (network), not after. CodeRabbit flagged this on 2026-03-19; the original prose had the same bug and the prose cleanup in this PR preserved it. - Change the new lifecycle code block's language tag from '[source,terraform]' to '[source,hcl]' so it matches the convention used by every other code block in this file. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Feediver1
left a comment
There was a problem hiding this comment.
PR Review: fix(DOC-1958): add lifecycle ignore_changes guidance and prose cleanup (#533)
Files reviewed: 1 .adoc file (44 additions / 30 deletions in the original PR; +1 follow-up commit for review feedback)
Overall assessment: Addresses DOC-1958 exactly as the ticket asks, plus delivers solid prose cleanup. Both review findings have been addressed in commit b5906ec.
What this PR does
Adds a new WARNING block in modules/manage/pages/terraform-provider.adoc documenting the lifecycle { ignore_changes = [throughput_tier] } Terraform pattern as a complement to allow_deletion = false, protecting BYOC/Dedicated clusters from accidental replacement when Redpanda Support upgrades a cluster's throughput tier. The same PR does a broader prose cleanup of the file: future-tense fixes, e.g./etc. removal, weak-verb rewrites, callout tightening, more semantic placeholders.
Jira ticket alignment
Ticket: DOC-1958 — Document the complementary lifecycle { ignore_changes = [throughput_tier] } pattern for preventing cluster replacement on Redpanda Support tier upgrades.
Status: ✅ Satisfies the ticket completely. The lifecycle block in the PR matches the snippet in the ticket; the Redpanda-Support-upgrade scenario is called out explicitly with the consequence ("the next terraform apply triggers replacement").
Critical issues — resolved
- [
terraform-provider.adoc:757] Dependency-deletion-order NOTE was backwards. CodeRabbit flagged this on 2026-03-19. The original prose had the bug; the PR's rewrite preserved it. Fixed in commitb5906ec:after→before("Terraform removes a cluster that depends on a network before it deletes the network"). Terraform destroys the dependent resource (cluster) first, then the dependency (network).
Suggestions — resolved
-
[
terraform-provider.adoc:113][source,terraform]was the only block in this file using that language tag. Every other code block in the file uses[source,hcl]. Fixed in commitb5906ec: changed to[source,hcl]for consistency. -
PR description references "Title Case violations" (plural). Audited every H2+ heading on the page; all are now sentence-case (or correctly preserve proper nouns like "Schema Registry"). No further title-case fixes needed.
Impact on other files
- No new pages added → no nav.adoc / index page / What's New updates needed.
- Cross-references unchanged → no broken xrefs.
- The
terraform-provider.adocis cloud-only (not single-sourced fromredpanda-data/docs) → no cross-repo concerns.
CodeRabbit findings worth considering
- [
terraform-provider.adoc:757] Deletion-order NOTE — resolved in commitb5906ec. CodeRabbit's only actionable comment, and it was a correct catch.
What works well
- Hits the DOC-1958 spec exactly. The lifecycle code block, the complementary framing, and the Redpanda-Support-upgrade narrative all match the ticket description.
- Significant prose tightening (~234-word reduction) without losing information. Callout
<1>going from 9 sentences to 3 is a real readability win; the new version preserves the technical content ("Terraform internal name vs. Cloud-facing name") in fewer words. - Style-guide-compliant fixes throughout: future-tense → present,
e.g.,→such as,etc.→and others, passive → active where possible, weak-verb removal in the opening sentence,Version Control→Version control. - More semantic placeholder:
"your-secret-password"→"schema-registry-password"(matches the variable name in the surrounding example). - Tightens the prerequisites list ("Install at least version 1.0.0" → "Install Terraform 1.0.0 or later") and the Windows-support note.
- Drops a vestigial introductory sentence before "Set up the provider" without losing user-relevant information.
- PR description is exemplary — explicit scope, links to the ticket, includes a test plan with checked items, distinguishes the DOC-1958 fix from the bonus cleanup.
Final-pass review via /docs-team-standards:pr-review. Critical fix and the source-block-tag suggestion applied in commit b5906ec (pushed to this branch).
…ten WARNING wording
Three findings from a follow-up review pass:
1. 'Manage an existing cluster' — restore the cluster_api_url explanation.
The previous rewrite dropped the sentence that explains the
cluster_api_url attribute on the data source, which is the actual
mechanism the code block below depends on. Without that explanation,
readers have to reverse-engineer the data-resource role from the HCL.
2. 'Create a schema' and 'Manage Schema Registry ACLs' — restore the
explicit resource-name mentions (redpanda_schema and
redpanda_schema_registry_acl). Section intros are where readers scan
for 'what resource do I use to do X?'; the rewrite removed those
anchors. Reinstated as opening sentences.
3. Limitations WARNING — change 'allows' to 'causes' in the throughput_tier
warning. 'Allows Terraform to destroy' reads as conditional/optional;
the actual semantics are unconditional ('the next apply triggers
replacement'). 'Causes Terraform to destroy and replace' carries the
right urgency for a destructive-operation WARNING.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Additional review feedback applied (commit
|
Summary
Terraform throughput tier ignore:
lifecycle { ignore_changes = [throughput_tier] }pattern as a complement toallow_deletion = false, protecting clusters from accidental replacement when Redpanda Support upgrades a throughput tiere.g./etc., and Title Case violations<1>from 9 sentences to 3"your-secret-password"placeholder with"schema-registry-password"Resolves DOC-1958.
Preview pages
Test plan
lifecyclecode block🤖 Generated with Claude Code