terraform/internal/plans
Martin Atkins a1a713cf28 core: Report ActionReasons when we plan to delete "orphans"
There are a few different reasons why a resource instance tracked in the
prior state might be considered an "orphan", but previously we reported
them all identically in the planned changes.

In order to help users understand the reason for a surprising planned
delete, we'll now try to specify an additional reason for the planned
deletion, covering all of the main reasons why that could happen.

This commit only introduces the new detail to the plans.Changes result,
though it also incidentally exposes it as part of the JSON plan result
in order to keep that working without returning errors in these new
cases. We'll expose this information in the human-oriented UI output in
a subsequent commit.
2021-09-23 14:37:08 -07:00
..
internal/planproto core: Report ActionReasons when we plan to delete "orphans" 2021-09-23 14:37:08 -07:00
objchange handle empty containers in ProposedNew NestedTypes 2021-09-15 08:33:25 -04:00
planfile core: Report ActionReasons when we plan to delete "orphans" 2021-09-23 14:37:08 -07:00
action.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
action_string.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
changes.go core: Report ActionReasons when we plan to delete "orphans" 2021-09-23 14:37:08 -07:00
changes_src.go command: Render "moved" annotations in plan UI 2021-09-03 17:44:07 -04:00
changes_state.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
changes_sync.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
changes_test.go command: Render "moved" annotations in plan UI 2021-09-03 17:44:07 -04:00
doc.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
dynamic_value.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
mode.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
mode_string.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
plan.go core: Compute resource drift after plan walk 2021-09-16 15:22:37 -04:00
plan_test.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
resourceinstancechangeactionreason_string.go core: Report ActionReasons when we plan to delete "orphans" 2021-09-23 14:37:08 -07:00