pulumi/pkg/resource/edit
Will Jones 41b967d451
Rewrite `DeletedWith` properties when renaming stacks (#16216)
When renaming a stack, we need to rewrite URN references to use the new
stack name instead of the old one. Presently such references can occur
as:

* `Parent` references
* `Provider` references
* `Dependencies`
* `PropertyDependencies`
* `DeletedWith` references

The current renaming implementation fails to rewrite `DeletedWith`
references. Previously this went unnoticed since such references were
also omitted when checking snapshot integrity. Now that integrity checks
correctly inspect `DeletedWith` properties, the omission during rename
has been surfaced. This commit fixes renaming to handle `DeletedWith`
correctly. A follow-up should also ensure that renaming checks integrity
itself prior to operation completion.

Fixes #16215
2024-05-16 15:09:32 +00:00
..
doc.go Add new 'pulumi state' command for editing state (#2024) 2018-10-15 09:52:55 -07:00
errors.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
operations.go Rewrite `DeletedWith` properties when renaming stacks (#16216) 2024-05-16 15:09:32 +00:00
operations_test.go State: fix panic when deleting non-unique Provider (#15322) 2024-02-05 16:21:38 +00:00