Skip to content

Commit

Permalink
fix: some nits Signed-off-by: withlin <[email protected]>
Browse files Browse the repository at this point in the history
Signed-off-by: withlin <[email protected]>
  • Loading branch information
withlin committed Dec 9, 2024
1 parent a532bac commit 76a67ce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion docs/configuration/plugins/outputs/kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ Password when using PLAIN/SCRAM SASL authentication
### principal (string, optional) {#kafka-principal}
### rdkafka_options (RdkafkaOptions, optional) {#kafka-rdkafka_options}
### rdkafka_options (*RdkafkaOptions, optional) {#kafka-rdkafka_options}
RdkafkaOptions represents the global configuration properties for librdkafka.
### required_acks (int, optional) {#kafka-required_acks}
Expand Down
5 changes: 3 additions & 2 deletions pkg/sdk/logging/model/output/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ type _metaKafka interface{} //nolint:deadcode,unused
// -[more info](https://github.com/fluent/fluent-plugin-kafka#output-plugin)
type KafkaOutputConfig struct {
// Use rdkafka2 instead of the legacy kafka2 output plugin. This plugin requires fluentd image version v1.16-4.9-full or higher.
UseRdkafka bool `json:"use_rdkafka,omitempty"`
RdkafkaOptions RdkafkaOptions `json:"rdkafka_options,omitempty"`
UseRdkafka bool `json:"use_rdkafka,omitempty"`
// RdkafkaOptions represents the global configuration properties for librdkafka.
RdkafkaOptions *RdkafkaOptions `json:"rdkafka_options,omitempty"`
// The list of all seed brokers, with their host and port information.
Brokers string `json:"brokers"`
// Topic Key (default: "topic")
Expand Down
6 changes: 5 additions & 1 deletion pkg/sdk/logging/model/output/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 76a67ce

Please sign in to comment.