Normalize event configuration (#1444)

* Normalize event configuration

This updates event configuration stanzas to more closely match behavior
for listeners and kmses:

* Singular "sink" instead of "sinks" (probably not the most correct
  option, but a consistent option, and one that makes sense for HCL)
* Allows sinks to have the type defined at the start of the block
* Moves type-specific configuration to a specific named block

Co-authored-by: Jim <jlambert@hashicorp.com>
This commit is contained in:
Jeff MitchellandJim authored and GitHub committed 2021-08-04 14:01:58 -04:00
1 parent 00ada3c578
commit c75c97a872
14 files changed
+412 -117

No files matched your search

+2 -2
View File
@@ -37,8 +37,8 @@ func Test_GetOpts(t *testing.T) {
// not a valid sink, but it doesn't need to be to test the
// option is properly supported.
{
Name: "test-sink",
SinkType: "Stderr",
Name: "test-sink",
Type: "Stderr",
},
},
}