opentofu/states
James Bardin f915c5d957 remove EachMode from resource state
Due to the fact that resources can transition between each modes, trying
to track the mode for a resource as a whole in state doesn't work,
because there may be instances with a mode different from the resource
as a whole. This is difficult for core to track, as this metadata being
changed as a side effect from multiple places often causes core to see
the incorrect mode when evaluating instances.

Since core can always determine the correct mode to evaluate from the
configuration, we don't need to interrogate the state to know the mode.
Once core no longer needs to reference EachMode from states, the
resource state can simply be a container for instances, and doesn't need
to try and track the "current" mode.
2020-04-30 09:22:14 -04:00
..
statefile remove EachMode from resource state 2020-04-30 09:22:14 -04:00
statemgr Fix typos (#24531) 2020-04-13 08:34:40 -04:00
doc.go states: New package with modern models for Terraform state 2018-10-16 18:49:20 -07:00
instance_generation.go states: New package with modern models for Terraform state 2018-10-16 18:49:20 -07:00
instance_object_src.go use addrs.ConfigResource for dependency tracking 2020-03-25 17:03:06 -04:00
instance_object.go use addrs.ConfigResource for dependency tracking 2020-03-25 17:03:06 -04:00
module.go remove EachMode from resource state 2020-04-30 09:22:14 -04:00
objectstatus_string.go stringer: Regenerate files with latest version 2019-05-13 15:34:27 +01:00
output_value.go add AbsOutputAddrs to state outputs 2020-04-13 16:37:59 -04:00
resource_test.go states: Fix TestResourceInstanceDeposeCurrentObject 2018-10-16 19:14:11 -07:00
resource.go remove EachMode from resource state 2020-04-30 09:22:14 -04:00
state_deepcopy.go remove EachMode from resource state 2020-04-30 09:22:14 -04:00
state_equal.go states: New package with modern models for Terraform state 2018-10-16 18:49:20 -07:00
state_string.go remove extra brackets in state string output 2020-04-09 15:36:16 -04:00
state_test.go remove EachMode from resource state 2020-04-30 09:22:14 -04:00
state.go Add ModuleOutputs method to states 2020-04-13 17:59:09 -04:00
sync.go remove EachMode from resource state 2020-04-30 09:22:14 -04:00