terraform/plans
Martin Atkins 6fd82ef97e core: Split Replace changes into separate Delete/Create changes
Since we do our deletes using a separate graph node from all of the other
actions, and a "Replace" change implies both a delete _and_ a create, we
need to pretend at apply time that a single replace change was actually
two separate changes.

This will also early-exit eval if a destroy node finds a non-Delete change
or if an apply node finds a Delete change. These should not happen in
practice because we leave these nodes out of the graph when they are not
needed for the given action, but we do this here for robustness so as not
to have an invisible dependency between the graph builder and the eval
phase.
2018-10-16 19:14:11 -07:00
..
internal/planproto plans: Record private data bytes as part of resource change 2018-10-16 19:11:09 -07:00
objchange plans/objchange: LongestCommonSubsequence 2018-10-16 19:14:11 -07:00
planfile plans: Record private data bytes as part of resource change 2018-10-16 19:11:09 -07:00
action.go plans: New package for in-memory plan models 2018-10-16 18:50:29 -07:00
action_string.go plans: New package for in-memory plan models 2018-10-16 18:50:29 -07:00
changes.go core: Split Replace changes into separate Delete/Create changes 2018-10-16 19:14:11 -07:00
changes_src.go plans: Track RequiredReplace as a cty.PathSet 2018-10-16 19:14:11 -07:00
changes_state.go plans: New package for in-memory plan models 2018-10-16 18:50:29 -07:00
changes_sync.go core: Remove changes from the plan after they are applied 2018-10-16 19:14:11 -07:00
doc.go plans: New package for in-memory plan models 2018-10-16 18:50:29 -07:00
dynamic_value.go core: Re-implement EvalWriteDiff to work with new plan types 2018-10-16 19:14:11 -07:00
dynamic_value_test.go plans: New package for in-memory plan models 2018-10-16 18:50:29 -07:00
plan.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
plan_test.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00