From 04f48669da3632355d2e0228bf27e6413e99ebb2 Mon Sep 17 00:00:00 2001 From: Jeesmon Jacob Date: Fri, 8 Nov 2024 09:37:19 -0500 Subject: [PATCH] Support setting fs-dir for fs datasource Signed-off-by: Jeesmon Jacob --- charts/log-router/templates/daemonset.yaml | 3 +++ charts/log-router/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/charts/log-router/templates/daemonset.yaml b/charts/log-router/templates/daemonset.yaml index 803a6326..a3a9e5ed 100755 --- a/charts/log-router/templates/daemonset.yaml +++ b/charts/log-router/templates/daemonset.yaml @@ -143,6 +143,9 @@ spec: {{- if .Values.adminNamespace }} - --admin-namespace={{ .Values.adminNamespace }} {{- end }} + {{- if eq .Values.datasource "fs" }} + - --fs-dir={{ required "fsDatasourceDir is required for fs datasource" .Values.fsDatasourceDir }} + {{- end }} volumeMounts: - name: fluentconf mountPath: /fluentd/etc diff --git a/charts/log-router/values.yaml b/charts/log-router/values.yaml index 712e89a5..d67e8edd 100755 --- a/charts/log-router/values.yaml +++ b/charts/log-router/values.yaml @@ -28,6 +28,9 @@ crdMigrationMode: false defaultConfigmap: "fluentd-config" +# Use with datasource: fs, the fsDataSourceDir will be used for finding config files +fsDatasourceDir: "" + image: repository: vmware/kube-fluentd-operator pullPolicy: IfNotPresent