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:
1 parent
00ada3c578
commit
c75c97a872
14 files changed
+412
-117
No files matched your search
@@ -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",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user