Skip to content

Commit 192130b

Browse files
committed
Support storage.total_limit_size in syslog plugin
Add storage.total_limit_size to the API and CRDs to allow it to be set for the Syslog output plugin. Regenerate docs and manifests as per contributor guidelines. Signed-off-by: James King <[email protected]>
1 parent a327d9b commit 192130b

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
@@ -4156,6 +4156,10 @@ spec:
41564156
description: Hostname to be used for TLS SNI extension
41574157
type: string
41584158
type: object
4159+
totalLimitSize:
4160+
description: Limit the maximum number of Chunks in the filesystem
4161+
for the current output logical destination.
4162+
type: string
41594163
type: object
41604164
tcp:
41614165
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
@@ -4156,6 +4156,10 @@ spec:
41564156
description: Hostname to be used for TLS SNI extension
41574157
type: string
41584158
type: object
4159+
totalLimitSize:
4160+
description: Limit the maximum number of Chunks in the filesystem
4161+
for the current output logical destination.
4162+
type: string
41594163
type: object
41604164
tcp:
41614165
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
@@ -4156,6 +4156,10 @@ spec:
41564156
description: Hostname to be used for TLS SNI extension
41574157
type: string
41584158
type: object
4159+
totalLimitSize:
4160+
description: Limit the maximum number of Chunks in the filesystem
4161+
for the current output logical destination.
4162+
type: string
41594163
type: object
41604164
tcp:
41614165
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
@@ -4156,6 +4156,10 @@ spec:
41564156
description: Hostname to be used for TLS SNI extension
41574157
type: string
41584158
type: object
4159+
totalLimitSize:
4160+
description: Limit the maximum number of Chunks in the filesystem
4161+
for the current output logical destination.
4162+
type: string
41594163
type: object
41604164
tcp:
41614165
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
@@ -8093,6 +8093,10 @@ spec:
80938093
description: Hostname to be used for TLS SNI extension
80948094
type: string
80958095
type: object
8096+
totalLimitSize:
8097+
description: Limit the maximum number of Chunks in the filesystem
8098+
for the current output logical destination.
8099+
type: string
80968100
type: object
80978101
tcp:
80988102
description: TCP defines TCP Output configuration.
@@ -36649,6 +36653,10 @@ spec:
3664936653
description: Hostname to be used for TLS SNI extension
3665036654
type: string
3665136655
type: object
36656+
totalLimitSize:
36657+
description: Limit the maximum number of Chunks in the filesystem
36658+
for the current output logical destination.
36659+
type: string
3665236660
type: object
3665336661
tcp:
3665436662
description: TCP defines TCP Output configuration.

manifests/setup/setup.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8093,6 +8093,10 @@ spec:
80938093
description: Hostname to be used for TLS SNI extension
80948094
type: string
80958095
type: object
8096+
totalLimitSize:
8097+
description: Limit the maximum number of Chunks in the filesystem
8098+
for the current output logical destination.
8099+
type: string
80968100
type: object
80978101
tcp:
80988102
description: TCP defines TCP Output configuration.
@@ -36649,6 +36653,10 @@ spec:
3664936653
description: Hostname to be used for TLS SNI extension
3665036654
type: string
3665136655
type: object
36656+
totalLimitSize:
36657+
description: Limit the maximum number of Chunks in the filesystem
36658+
for the current output logical destination.
36659+
type: string
3665236660
type: object
3665336661
tcp:
3665436662
description: TCP defines TCP Output configuration.

0 commit comments

Comments
 (0)