Expand description
Plan file schema and matching for diff --plan-out / apply --plan.
The plan file freezes the set of actionable ops produced by diff so
that apply can refuse to run when the live Braze state has drifted
since the plan was generated (Terraform-style plan/apply lock).
Structs§
- Plan
File - PlanOp
- Plan
OpsDiff - Result of comparing a saved plan’s ops against a freshly-computed list.
- Plan
Scope
Enums§
- Plan
OpType - The coarse op classification used for plan locking. Field-level payloads are deliberately excluded so the plan file stays safe to publish as a CI artifact and so the apply-time comparison tolerates benign content edits made between plan and apply.
Constants§
- CURRENT_
PLAN_ VERSION - STALE_
PLAN_ WARN_ THRESHOLD - Warn at apply time when the saved plan is older than this.
Functions§
- collect_
ops - Convert a
DiffSummaryinto the coarse plan-op list. Skips non-actionable diffs (Tag drift, Custom Attribute metadata-only, Unchanged) so the plan-lock vocabulary matches the set of operations apply can actually perform.