mirror of https://github.com/pulumi/pulumi.git
403b3d3fa4
The `ignoreChanges` resource option accepts a list of paths into a resource that should be ignored when computing whether or not something has changed. For example: ```typescript const r = new Resource( "r", { a: "a", b: [1, 2], c: { d: "d" }, }, { ignoreChanges: [ "a", "b[*]", ], } ) ``` Here, when diffing `r`, Pulumi will ignore changes to `a` (due to the path `"a"`) as well as changes to any element of `b` (due to the _wildcard_ path `"b[*]"`). Under the hood, `ignoreChanges` is implemented partly by "resetting" pieces of a resource's state to older values -- that is, rather than ignoring changes that might be reported, Pulumi will undo the changes before they are used altogether. In #16406, a panic encountered when resetting children of arrays of different length was fixed. This commit extends this fix to cover panics that occur when simply resetting arrays themselves (e.g. resetting `[1,2]` to `[1,2,3]`). As part of this, some test cases are renamed to convey that the are actually testing the children of arrays or wildcard-selected objects, in order to accommodate new test cases for this panic. Fixes #16724 |
||
---|---|---|
.. | ||
archive | ||
asset | ||
config | ||
plugin | ||
sig | ||
testing | ||
urn | ||
alias.go | ||
alias_test.go | ||
asset.go | ||
asset_test.go | ||
custom_timeouts.go | ||
errors.go | ||
mapper_test.go | ||
properties.go | ||
properties_diff.go | ||
properties_diff_test.go | ||
properties_path.go | ||
properties_path_test.go | ||
properties_test.go | ||
property_compatibility.go | ||
property_compatibility_test.go | ||
resource_goal.go | ||
resource_id.go | ||
resource_id_test.go | ||
resource_operation.go | ||
resource_state.go | ||
stack.go | ||
status.go | ||
urn.go |