Skip to content

fix(DOC-1958): add lifecycle ignore_changes guidance and prose cleanup#533

Merged
Feediver1 merged 4 commits into
mainfrom
fix/doc-1958-terraform-ignore-changes
May 22, 2026
Merged

fix(DOC-1958): add lifecycle ignore_changes guidance and prose cleanup#533
Feediver1 merged 4 commits into
mainfrom
fix/doc-1958-terraform-ignore-changes

Conversation

@mfernest
Copy link
Copy Markdown
Contributor

@mfernest mfernest commented Mar 19, 2026

Summary

Terraform throughput tier ignore:

  • Documents the lifecycle { ignore_changes = [throughput_tier] } pattern as a complement to allow_deletion = false, protecting clusters from accidental replacement when Redpanda Support upgrades a throughput tier
  • Rewrites opening sentence to remove weak verbs
  • Cuts throat-clearing prose throughout (~234 net word reduction)
  • Fixes passive voice, future tense, e.g./etc., and Title Case violations
  • Tightens callout <1> from 9 sentences to 3
  • Replaces "your-secret-password" placeholder with "schema-registry-password"

Resolves DOC-1958.

Preview pages

Test plan

  • Build passes locally
  • Limitations section renders correctly with new lifecycle code block
  • Deploy preview renders correctly

🤖 Generated with Claude Code

- 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>
@mfernest mfernest requested a review from a team as a code owner March 19, 2026 19:50
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 19, 2026

Deploy Preview for rp-cloud ready!

Name Link
🔨 Latest commit ab478ee
🔍 Latest deploy log https://app.netlify.com/projects/rp-cloud/deploys/6a108080912f350008aab7f1
😎 Deploy Preview https://deploy-preview-533--rp-cloud.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 Mar 19, 2026

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.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ae5e4350-b8e3-4a8d-9916-54191f219653

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This 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 throughput_tier warning with a Terraform lifecycle workaround example, refining installation instructions, and reworded descriptions for various examples and Terraform concepts.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

Suggested reviewers

  • micheleRP
  • david-yu
  • paulohtb6
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically summarizes the main changes: documenting a Terraform lifecycle pattern and performing prose cleanup, aligning with the primary objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The PR description includes all required template sections: issue reference (DOC-1958), page preview link, and applicable checkboxes marked.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/doc-1958-terraform-ignore-changes

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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

📥 Commits

Reviewing files that changed from the base of the PR and between d122be8 and cc47d06.

📒 Files selected for processing (1)
  • modules/manage/pages/terraform-provider.adoc

Comment thread modules/manage/pages/terraform-provider.adoc Outdated
@Feediver1
Copy link
Copy Markdown
Contributor

@mfernest Please add the SME reviewer!

@mfernest mfernest requested a review from gavinheavyside March 26, 2026 17:52
Feediver1 and others added 2 commits May 22, 2026 11:04
…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>
Copy link
Copy Markdown
Contributor

@Feediver1 Feediver1 left a comment

Choose a reason for hiding this comment

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

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

  1. [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 commit b5906ec: afterbefore ("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

  1. [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 commit b5906ec: changed to [source,hcl] for consistency.

  2. 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.adoc is cloud-only (not single-sourced from redpanda-data/docs) → no cross-repo concerns.

CodeRabbit findings worth considering

  1. [terraform-provider.adoc:757] Deletion-order NOTE — resolved in commit b5906ec. 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 ControlVersion 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).

@Feediver1 Feediver1 self-assigned this May 22, 2026
…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>
@Feediver1
Copy link
Copy Markdown
Contributor

Additional review feedback applied (commit ab478ee)

A follow-up review pass found three items my earlier docs-team-standards:pr-review missed. All three are real and have been addressed on the branch in commit ab478ee:

1. "Manage an existing cluster" — restored the cluster_api_url explanation

The rewrite had dropped the sentence explaining the cluster_api_url attribute on the data source, which is the actual mechanism the code block below depends on. Without it, readers had to reverse-engineer the data-resource role from the HCL.

Restored sentence:

The data source exposes a cluster_api_url attribute that other resources (such as redpanda_topic) reference to connect to the cluster.

2. "Create a schema" and "Manage Schema Registry ACLs" — restored explicit resource-name mentions

Section intros are where readers scan for "what resource do I use to do X?". The rewrite removed those anchors:

  • "Create a schema" no longer named redpanda_schema.
  • "Manage Schema Registry ACLs" no longer named redpanda_schema_registry_acl.

Restored as opening sentences in both subsections, so the resource name lands before the reader hits the HCL block.

3. Limitations WARNING — allowscauses

If allow_deletion is set to true, modifying throughput_tier allows causes Terraform to destroy and replace the existing cluster, causing data loss.

"Allows Terraform to destroy" reads conditional/optional, which softens the actual semantics: the next terraform apply will trigger replacement unconditionally. The two follow-up bullets ("Set allow_deletion to false" / "Add a lifecycle block") are the conditional part — they need a stark consequence above them to motivate them. "Causes Terraform to destroy and replace" gives the WARNING the right urgency.

Why I missed these

My earlier review checked the PR for DOC-1958 alignment, style-guide compliance, bugs (the deletion-order NOTE), cross-page consistency, and build impact. What it didn't do is audit the diff for information loss — specifically, what the old prose carried that the new prose dropped. For a PR whose explicit value is "~234 net word reduction," that audit is the central thing to do, and I skipped it. The teammate's pass filled that gap. I've saved a memory rule for myself so future prose-cleanup PR reviews include both an information-loss audit and a warning-tone scrutiny pass.

@Feediver1 Feediver1 merged commit 2581b25 into main May 22, 2026
5 checks passed
@Feediver1 Feediver1 deleted the fix/doc-1958-terraform-ignore-changes branch May 22, 2026 16:25
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