Skip to content

Support for Compress option in fb Output forward plugin #1493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apis/fluentbit/v1alpha2/plugins/output/forward_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
// Enables at-least-once and receiving server can control rate of traffic.
// (Requires Fluentd v0.14.0+ server)
RequireAckResponse *bool `json:"requireAckResponse,omitempty"`
// Set payload compression mechanism. Option available is 'gzip'
// +kubebuilder:validation:Enum=gzip
Compress string `json:"compress,omitempty"`
// A key string known by the remote Fluentd used for authorization.
SharedKey string `json:"sharedKey,omitempty"`
// Use this option to connect to Fluentd with a zero-length secret.
Expand Down Expand Up @@ -70,6 +73,9 @@
if f.RequireAckResponse != nil {
kvs.Insert("Require_ack_response", fmt.Sprint(*f.RequireAckResponse))
}
if f.Compress != nil {

Check failure on line 76 in apis/fluentbit/v1alpha2/plugins/output/forward_types.go

View workflow job for this annotation

GitHub Actions / Binary build

invalid operation: f.Compress != nil (mismatched types string and untyped nil)

Check failure on line 76 in apis/fluentbit/v1alpha2/plugins/output/forward_types.go

View workflow job for this annotation

GitHub Actions / Basic test and verify

invalid operation: f.Compress != nil (mismatched types string and untyped nil)
kvs.Insert("Compress", fmt.Sprint(*f.Compress))

Check failure on line 77 in apis/fluentbit/v1alpha2/plugins/output/forward_types.go

View workflow job for this annotation

GitHub Actions / Binary build

invalid operation: cannot indirect f.Compress (variable of type string)

Check failure on line 77 in apis/fluentbit/v1alpha2/plugins/output/forward_types.go

View workflow job for this annotation

GitHub Actions / Basic test and verify

invalid operation: cannot indirect f.Compress (variable of type string)
}
if f.SharedKey != "" {
kvs.Insert("Shared_Key", f.SharedKey)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,12 @@ spec:
maximum: 65535
minimum: 1
type: integer
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
enum:
- gzip
type: string
requireAckResponse:
description: |-
Send "chunk"-option and wait for "ack" response from server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,12 @@ spec:
maximum: 65535
minimum: 1
type: integer
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
enum:
- gzip
type: string
requireAckResponse:
description: |-
Send "chunk"-option and wait for "ack" response from server.
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_clusteroutputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,12 @@ spec:
maximum: 65535
minimum: 1
type: integer
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
enum:
- gzip
type: string
requireAckResponse:
description: |-
Send "chunk"-option and wait for "ack" response from server.
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_outputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,12 @@ spec:
maximum: 65535
minimum: 1
type: integer
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
enum:
- gzip
type: string
requireAckResponse:
description: |-
Send "chunk"-option and wait for "ack" response from server.
Expand Down
1 change: 1 addition & 0 deletions docs/plugins/fluentbit/output/forward.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Forward is the protocol used by Fluentd to route messages between peers. <br />
| tag | Overwrite the tag as we transmit. This allows the receiving pipeline start fresh, or to attribute source. | string |
| timeAsInteger | Set timestamps in integer format, it enable compatibility mode for Fluentd v0.12 series. | *bool |
| sendOptions | Always send options (with \"size\"=count of messages) | *bool |
| compress | Set payload compression mechanism. Option available is 'gzip' | string |
| requireAckResponse | Send \"chunk\"-option and wait for \"ack\" response from server. Enables at-least-once and receiving server can control rate of traffic. (Requires Fluentd v0.14.0+ server) | *bool |
| sharedKey | A key string known by the remote Fluentd used for authorization. | string |
| emptySharedKey | Use this option to connect to Fluentd with a zero-length secret. | *bool |
Expand Down
11 changes: 11 additions & 0 deletions manifests/setup/fluent-operator-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5196,6 +5196,12 @@ spec:
maximum: 65535
minimum: 1
type: integer
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
enum:
- gzip
type: string
requireAckResponse:
description: |-
Send "chunk"-option and wait for "ack" response from server.
Expand Down Expand Up @@ -34026,6 +34032,11 @@ spec:
maximum: 65535
minimum: 1
type: integer
compress:
description: Set payload compression mechanism. Option available is 'gzip'
enum:
- gzip
type: string
requireAckResponse:
description: |-
Send "chunk"-option and wait for "ack" response from server.
Expand Down
10 changes: 10 additions & 0 deletions manifests/setup/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5196,6 +5196,10 @@ spec:
maximum: 65535
minimum: 1
type: integer
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
type: string
requireAckResponse:
description: |-
Send "chunk"-option and wait for "ack" response from server.
Expand Down Expand Up @@ -34026,6 +34030,12 @@ spec:
maximum: 65535
minimum: 1
type: integer
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
enum:
- gzip
type: string
requireAckResponse:
description: |-
Send "chunk"-option and wait for "ack" response from server.
Expand Down
Loading