terraform/plugin
Martin Atkins 88e76fa9ef configs/configschema: Introduce the NestingGroup mode for blocks
In study of existing providers we've found a pattern we werent previously
accounting for of using a nested block type to represent a group of
arguments that relate to a particular feature that is always enabled but
where it improves configuration readability to group all of its settings
together in a nested block.

The existing NestingSingle was not a good fit for this because it is
designed under the assumption that the presence or absence of the block
has some significance in enabling or disabling the relevant feature, and
so for these always-active cases we'd generate a misleading plan where
the settings for the feature appear totally absent, rather than showing
the default values that will be selected.

NestingGroup is, therefore, a slight variation of NestingSingle where
presence vs. absence of the block is not distinguishable (it's never null)
and instead its contents are treated as unset when the block is absent.
This then in turn causes any default values associated with the nested
arguments to be honored and displayed in the plan whenever the block is
not explicitly configured.

The current SDK cannot activate this mode, but that's okay because its
"legacy type system" opt-out flag allows it to force a block to be
processed in this way anyway. We're adding this now so that we can
introduce the feature in a future SDK without causing a breaking change
to the protocol, since the set of possible block nesting modes is not
extensible.
2019-04-10 14:53:52 -07:00
..
convert configs/configschema: Introduce the NestingGroup mode for blocks 2019-04-10 14:53:52 -07:00
discovery Only display status link if public registry used 2019-04-05 16:49:27 -04:00
mock_proto build: Run "go generate" in modules mode 2019-02-06 11:19:44 -08:00
client.go enable Auto mTLS in go-plugin 2018-12-05 20:30:16 -05:00
grpc_provider.go use LegacyResourceSchema 2019-04-08 16:45:35 -04:00
grpc_provider_test.go add 3rd param to mock call 2019-04-02 16:11:32 -04:00
grpc_provisioner.go plugin: Establish our current plugin protocol as version 5 2018-11-19 09:56:41 -08:00
grpc_provisioner_test.go plugin: Establish our current plugin protocol as version 5 2018-11-19 09:56:41 -08:00
plugin.go terraform: More wiring in of new provider types 2018-10-16 19:12:54 -07:00
plugin_test.go Use hashicorp/go-plugin for plugin system 2016-05-10 14:14:47 -04:00
resource_provider.go serve the new version 5 grpc plugins 2018-10-16 18:58:49 -07:00
resource_provider_test.go plugin: Fix tests 2018-10-16 19:14:11 -07:00
resource_provisioner.go serve the new version 5 grpc plugins 2018-10-16 18:58:49 -07:00
resource_provisioner_test.go plugin: Fix tests 2018-10-16 19:14:11 -07:00
serve.go Bump installer protocol version to 5 and separate client and server protocol references 2019-01-16 15:07:57 -06:00
ui_input.go core: add a context to the UIInput interface 2019-03-08 10:24:40 +01:00
ui_input_test.go core: add a context to the UIInput interface 2019-03-08 10:24:40 +01:00
ui_output.go Use hashicorp/go-plugin for plugin system 2016-05-10 14:14:47 -04:00
ui_output_test.go Use hashicorp/go-plugin for plugin system 2016-05-10 14:14:47 -04:00