Skip to content

Commit

Permalink
fix: incorrect field names in fluentd buffer plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Edmund Rhudy <[email protected]>
  • Loading branch information
erhudy committed Jul 8, 2023
1 parent ab72254 commit ad95a05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apis/fluentd/v1alpha1/plugins/common/buffer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (b *Buffer) Params(_ plugins.SecretLoader) (*params.PluginStore, error) {
}

if b.TotalLimitSize != nil {
ps.InsertPairs("chunk_limit_size", *b.TotalLimitSize)
ps.InsertPairs("total_limit_size", *b.TotalLimitSize)
}

if b.QueueLimitLength != nil {
Expand Down Expand Up @@ -254,7 +254,7 @@ func (b *Buffer) Params(_ plugins.SecretLoader) (*params.PluginStore, error) {
}

if b.RetrySecondaryThreshold != nil {
ps.InsertPairs("retry_secondary_threshold", fmt.Sprint(*b.RetryTimeout))
ps.InsertPairs("retry_secondary_threshold", fmt.Sprint(*b.RetrySecondaryThreshold))
}

if b.RetryType != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
<buffer buffertag.*>
@id common_buffer
@type file
chunk_limit_size 5GB
path /buffers/fd.log
total_limit_size 5GB
</buffer>
<server>
host host
Expand All @@ -98,8 +98,8 @@
<buffer buffertag.*>
@id common_buffer
@type file
chunk_limit_size 5GB
path /buffers/fd.log
total_limit_size 5GB
</buffer>
<format>
@type json
Expand All @@ -116,8 +116,8 @@
<buffer buffertag.*>
@id common_buffer
@type file
chunk_limit_size 5GB
path /buffers/fd.log
total_limit_size 5GB
</buffer>
</match>
</label>
Expand Down Expand Up @@ -172,8 +172,8 @@
<buffer buffertag.*>
@id common_buffer
@type file
chunk_limit_size 5GB
path /buffers/fd.log
total_limit_size 5GB
</buffer>
<server>
host host
Expand All @@ -191,8 +191,8 @@
<buffer buffertag.*>
@id common_buffer
@type file
chunk_limit_size 5GB
path /buffers/fd.log
total_limit_size 5GB
</buffer>
<format>
@type json
Expand All @@ -209,8 +209,8 @@
<buffer buffertag.*>
@id common_buffer
@type file
chunk_limit_size 5GB
path /buffers/fd.log
total_limit_size 5GB
</buffer>
</match>
</label>

0 comments on commit ad95a05

Please sign in to comment.