pulumi/pkg
Will Jones 0bec028ad7
Support pruning snapshots (#17408)
An important precondition of Pulumi state snapshots is that there are no
*dangling references* -- that is, references to resources which do not
exist in the snapshot. Snapshots which have such references will yield
snapshot integrity errors when `Snapshot.VerifyIntegrity` is called.
This commit introduces the `Snapshot.Prune` method, which walks a
snapshot and removes dangling references. The snapshot is assumed to be
toplogically sorted and URN changes due to dangling parent references
are propagated appropriately. In combination with the recently added
`Topsort` method, this should set us in good stead for introducing a
`state repair` command to automatically clean up many kinds of invalid
snapshots.
2024-10-01 12:44:22 +00:00
..
asset Move some asset code to pkg (#15162) 2024-01-17 11:30:37 +00:00
authhelpers Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
backend Introduce snapshot metadata (#17430) 2024-09-30 16:45:40 +00:00
cmd/pulumi Introduce snapshot metadata (#17430) 2024-09-30 16:45:40 +00:00
codegen Test pyright and mypy in python conformance tests (#17354) 2024-09-30 23:38:39 +00:00
display Move sdk/go/common/display to /pkg/display (#13954) 2023-09-18 11:01:28 +00:00
engine Introduce snapshot metadata (#17430) 2024-09-30 16:45:40 +00:00
graph Support topologically sorting snapshots (#17403) 2024-10-01 08:45:35 +00:00
importer [cli/import] Fix undefined variable errors in code generation when imported resources use a parent or provider (#16786) 2024-07-25 13:53:44 +00:00
operations Move resource.URN to urn.URN (#15689) 2024-03-14 15:28:32 +00:00
resource Support pruning snapshots (#17408) 2024-10-01 12:44:22 +00:00
secrets Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
testing/integration Switch back to `os/user` to get the current user (#17125) 2024-08-31 18:54:35 +00:00
util Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
workspace Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod Add clockwork for deterministic time testing (#17397) 2024-09-27 10:39:27 +00:00
go.sum Add clockwork for deterministic time testing (#17397) 2024-09-27 10:39:27 +00:00

README.md

pulumi/pkg

While pulumi/sdk maintains strict backwards compatibility guarantees, code under pkg/ is handled more informally: while breaking changes are still discouraged they may happen when they make sense.