Skip to content

Commit 439c604

Browse files
committed
Adds support for storage.type to the Kubernetes events input plugin
Signed-off-by: Nick Galtry <nick.galtry@mobilise.cloud>
1 parent 1e8d761 commit 439c604

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apis/fluentbit/v1alpha2/plugins/input/kubernetes_events_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ type KubernetesEvents struct {
4343
TLSVerify *bool `json:"tlsVerify,omitempty"`
4444
// Set optional TLS virtual host.
4545
TLSVhost string `json:"tlsVhost,omitempty"`
46+
// Specifies the buffering mechanism for use with the input plugin, requires storage.path to be set in the service.
47+
// Accepted values: memory or filesystem
48+
StorageType string `json:"storageType,omitempty"`
4649
}
4750

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

6872
plugins.InsertKVField(kvs, "Interval_Sec", k.IntervalSec)
6973
plugins.InsertKVField(kvs, "Interval_Nsec", k.IntervalNsec)

0 commit comments

Comments
 (0)