Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ type KubernetesEvents struct {
TLSVerify *bool `json:"tlsVerify,omitempty"`
// Set optional TLS virtual host.
TLSVhost string `json:"tlsVhost,omitempty"`
// Specifies the buffering mechanism for use with the input plugin, requires storage.path to be set in the service.
// +kubebuilder:validation:Enum:=filesystem;memory
StorageType string `json:"storageType,omitempty"`
}

func (*KubernetesEvents) Name() string {
Expand All @@ -64,6 +67,7 @@ func (k *KubernetesEvents) Params(_ plugins.SecretLoader) (*params.KVs, error) {
plugins.InsertKVString(kvs, "Kube_Retention_Time", k.KubeRetentionTime)
plugins.InsertKVString(kvs, "Kube_Namespace", k.KubeNamespace)
plugins.InsertKVString(kvs, "tls.Vhost", k.TLSVhost)
plugins.InsertKVString(kvs, "storage.type", k.StorageType)

plugins.InsertKVField(kvs, "Interval_Sec", k.IntervalSec)
plugins.InsertKVField(kvs, "Interval_Nsec", k.IntervalNsec)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,13 @@ spec:
kubeURL:
description: API Server end-point
type: string
storageType:
description: Specifies the buffering mechanism for use with the
input plugin, requires storage.path to be set in the service.
enum:
- filesystem
- memory
type: string
tag:
description: Tag name associated to all records coming from this
plugin.
Expand Down
7 changes: 7 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_clusterinputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,13 @@ spec:
kubeURL:
description: API Server end-point
type: string
storageType:
description: Specifies the buffering mechanism for use with the
input plugin, requires storage.path to be set in the service.
enum:
- filesystem
- memory
type: string
tag:
description: Tag name associated to all records coming from this
plugin.
Expand Down
1 change: 1 addition & 0 deletions docs/plugins/fluentbit/input/kubernetes_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ The KubernetesEvents input plugin allows you to collect kubernetes cluster event
| tlsDebug | Debug level between 0 (nothing) and 4 (every detail). | *int32 |
| tlsVerify | When enabled, turns on certificate validation when connecting to the Kubernetes API server. | *bool |
| tlsVhost | Set optional TLS virtual host. | string |
| storageType | Specifies the buffering mechanism for use with the input plugin, requires storage.path to be set in the service. | string |
7 changes: 7 additions & 0 deletions manifests/setup/fluent-operator-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2494,6 +2494,13 @@ spec:
kubeURL:
description: API Server end-point
type: string
storageType:
description: Specifies the buffering mechanism for use with the
input plugin, requires storage.path to be set in the service.
enum:
- filesystem
- memory
type: string
tag:
description: Tag name associated to all records coming from this
plugin.
Expand Down
7 changes: 7 additions & 0 deletions manifests/setup/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2494,6 +2494,13 @@ spec:
kubeURL:
description: API Server end-point
type: string
storageType:
description: Specifies the buffering mechanism for use with the
input plugin, requires storage.path to be set in the service.
enum:
- filesystem
- memory
type: string
tag:
description: Tag name associated to all records coming from this
plugin.
Expand Down
Loading