Skip to content

Commit 49ea64a

Browse files
committed
Support setting configFileFormat in helm chart
1 parent 2f1c90b commit 49ea64a

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

charts/fluent-operator/templates/fluentbitconfig-fluentBitConfig.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ spec:
1010
{{- if .Values.fluentbit.namespaceClusterFbCfg }}
1111
namespace: {{ .Values.fluentbit.namespaceClusterFbCfg }}
1212
{{- end }}
13+
configFileFormat: {{ default "classic" .Values.fluentbit.configFileFormat }}
1314
service:
1415
parsersFiles:
1516
- /fluent-bit/etc/parsers.conf

charts/fluent-operator/templates/fluentbitconfig-fluentbitconfig-edge.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ metadata:
66
labels:
77
app.kubernetes.io/name: fluent-bit
88
spec:
9+
configFileFormat: {{ default "classic" .Values.fluentbit.configFileFormat }}
910
service:
1011
parsersFile: parsers.conf
1112
inputSelector:

charts/fluent-operator/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,11 @@ fluentbit:
192192
# mountPropagation: HostToContainer
193193
# name: hostBuffer
194194

195-
196195
namespaceFluentBitCfgSelector: {}
197196

197+
# Configure the format of the config file to either classic or yaml. Default to classic when this value is not set
198+
# configFileFormat: yaml
199+
198200
# Set a limit of memory that Tail plugin can use when appending data to the Engine.
199201
# You can find more details here: https://docs.fluentbit.io/manual/pipeline/inputs/tail#config
200202
# If the limit is reach, it will be paused; when the data is flushed it resumes.

0 commit comments

Comments
 (0)