Skip to content

Commit 850cb1b

Browse files
authored
Merge pull request #1318 from jk-mob/add-storage-total-limit-size-to-syslog-plugin
Support storage.total_limit_size in syslog plugin
2 parents a7efbcc + 192130b commit 850cb1b

File tree

8 files changed

+38
-0
lines changed

8 files changed

+38
-0
lines changed

apis/fluentbit/v1alpha2/plugins/output/syslog_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ type Syslog struct {
4545
*plugins.TLS `json:"tls,omitempty"`
4646
// Include fluentbit networking options for this output-plugin
4747
*plugins.Networking `json:"networking,omitempty"`
48+
// Limit the maximum number of Chunks in the filesystem for the current output logical destination.
49+
TotalLimitSize string `json:"totalLimitSize,omitempty"`
4850
}
4951

5052
func (_ *Syslog) Name() string {
@@ -107,5 +109,8 @@ func (s *Syslog) Params(sl plugins.SecretLoader) (*params.KVs, error) {
107109
}
108110
kvs.Merge(net)
109111
}
112+
if s.TotalLimitSize != "" {
113+
kvs.Insert("storage.total_limit_size", s.TotalLimitSize)
114+
}
110115
return kvs, nil
111116
}

charts/fluent-operator/charts/fluent-bit-crds/crds/fluentbit.fluent.io_clusteroutputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4159,6 +4159,10 @@ spec:
41594159
description: Hostname to be used for TLS SNI extension
41604160
type: string
41614161
type: object
4162+
totalLimitSize:
4163+
description: Limit the maximum number of Chunks in the filesystem
4164+
for the current output logical destination.
4165+
type: string
41624166
type: object
41634167
tcp:
41644168
description: TCP defines TCP Output configuration.

charts/fluent-operator/charts/fluent-bit-crds/crds/fluentbit.fluent.io_outputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4159,6 +4159,10 @@ spec:
41594159
description: Hostname to be used for TLS SNI extension
41604160
type: string
41614161
type: object
4162+
totalLimitSize:
4163+
description: Limit the maximum number of Chunks in the filesystem
4164+
for the current output logical destination.
4165+
type: string
41624166
type: object
41634167
tcp:
41644168
description: TCP defines TCP Output configuration.

config/crd/bases/fluentbit.fluent.io_clusteroutputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4159,6 +4159,10 @@ spec:
41594159
description: Hostname to be used for TLS SNI extension
41604160
type: string
41614161
type: object
4162+
totalLimitSize:
4163+
description: Limit the maximum number of Chunks in the filesystem
4164+
for the current output logical destination.
4165+
type: string
41624166
type: object
41634167
tcp:
41644168
description: TCP defines TCP Output configuration.

config/crd/bases/fluentbit.fluent.io_outputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4159,6 +4159,10 @@ spec:
41594159
description: Hostname to be used for TLS SNI extension
41604160
type: string
41614161
type: object
4162+
totalLimitSize:
4163+
description: Limit the maximum number of Chunks in the filesystem
4164+
for the current output logical destination.
4165+
type: string
41624166
type: object
41634167
tcp:
41644168
description: TCP defines TCP Output configuration.

docs/plugins/fluentbit/output/syslog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ Syslog output plugin allows you to deliver messages to Syslog servers. <br /> **
2020
| syslogMessageKey | Key key name that contains the message to deliver. | string |
2121
| tls | Syslog output plugin supports TTL/SSL, for more details about the properties available and general configuration, please refer to the TLS/SSL section. | *[plugins.TLS](../tls.md) |
2222
| networking | Include fluentbit networking options for this output-plugin | *plugins.Networking |
23+
| totalLimitSize | Limit the maximum number of Chunks in the filesystem for the current output logical destination. | string |

manifests/setup/fluent-operator-crd.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8096,6 +8096,10 @@ spec:
80968096
description: Hostname to be used for TLS SNI extension
80978097
type: string
80988098
type: object
8099+
totalLimitSize:
8100+
description: Limit the maximum number of Chunks in the filesystem
8101+
for the current output logical destination.
8102+
type: string
80998103
type: object
81008104
tcp:
81018105
description: TCP defines TCP Output configuration.
@@ -36655,6 +36659,10 @@ spec:
3665536659
description: Hostname to be used for TLS SNI extension
3665636660
type: string
3665736661
type: object
36662+
totalLimitSize:
36663+
description: Limit the maximum number of Chunks in the filesystem
36664+
for the current output logical destination.
36665+
type: string
3665836666
type: object
3665936667
tcp:
3666036668
description: TCP defines TCP Output configuration.

manifests/setup/setup.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8096,6 +8096,10 @@ spec:
80968096
description: Hostname to be used for TLS SNI extension
80978097
type: string
80988098
type: object
8099+
totalLimitSize:
8100+
description: Limit the maximum number of Chunks in the filesystem
8101+
for the current output logical destination.
8102+
type: string
80998103
type: object
81008104
tcp:
81018105
description: TCP defines TCP Output configuration.
@@ -36655,6 +36659,10 @@ spec:
3665536659
description: Hostname to be used for TLS SNI extension
3665636660
type: string
3665736661
type: object
36662+
totalLimitSize:
36663+
description: Limit the maximum number of Chunks in the filesystem
36664+
for the current output logical destination.
36665+
type: string
3665836666
type: object
3665936667
tcp:
3666036668
description: TCP defines TCP Output configuration.

0 commit comments

Comments
 (0)