Skip to main content

Module diff

Module diff 

Source
Expand description

Structured diff between desired and actual release state.

sr plan computes a ReleaseDiff and renders it for the user. Every resource the reconciler would touch appears as one ResourceDiff entry showing its current observable state, its desired state, and the Action that would converge the two.

This is Terraform-style: the diff describes what would happen, not what commit-message was parsed. The changelog is still computed (it’s the body of the Release resource) but the user-facing plan output is resource-by-resource.

Structs§

DiffSummary
ReleaseDiff
Aggregate plan diff.
ResourceDiff
One row in the plan output.

Enums§

Action
What the reconciler would do to converge actual → desired.
ResourceKind
Kind of resource under reconciliation. Determines the row’s prefix label in the human-readable diff.
ResourceState
What’s there vs. what we want there.

Functions§

build_diff
Build the diff by querying actual state for every resource the plan would touch.
render_human
Human-friendly rendering of the diff (Terraform-style).