Skip to content

Commit e94cf64

Browse files
committed
chore(fluentbit): add fluentbit datemonset extra env
1 parent 3c23972 commit e94cf64

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

addons/fluentbit/2/chart/fluentbit/templates/daemonset.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@ spec:
6161
- fluent-bit
6262
- -c
6363
- /opt/drycc/fluent-bit/etc/fluent-bit/fluentbit.conf
64+
env:
65+
{{- if .Values.daemonset.extraEnvVars }}
66+
{{- include "common.tplvalues.render" (dict "value" .Values.daemonset.extraEnvVars "context" $) | nindent 10 }}
67+
{{- end }}
68+
envFrom:
69+
{{- if .Values.daemonset.extraEnvVarsCM }}
70+
- configMapRef:
71+
name: {{ include "common.tplvalues.render" (dict "value" .Values.daemonset.extraEnvVarsCM "context" $) }}
72+
{{- end }}
73+
{{- if .Values.daemonset.extraEnvVarsSecret }}
74+
- secretRef:
75+
name: {{ include "common.tplvalues.render" (dict "value" .Values.daemonset.extraEnvVarsSecret "context" $) }}
76+
{{- end }}
6477
volumeMounts:
6578
- name: data
6679
mountPath: /data

addons/fluentbit/2/chart/fluentbit/values.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,19 @@ daemonset:
257257
Rule "start_state" "/^panic: /" "cont"
258258
Rule "cont" "/^\s+/" "cont"
259259
Rule "cont" "/^goroutine /" "cont"
260+
## @param daemonset.extraEnvVars Array with extra environment variables to add to daemonset nodes
261+
## e.g:
262+
## extraEnvVars:
263+
## - name: FOO
264+
## value: "bar"
265+
##
266+
extraEnvVars: []
267+
## @param daemonset.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for daemonset nodes
268+
##
269+
extraEnvVarsCM: ""
270+
## @param daemonset.extraEnvVarsSecret Name of existing Secret containing extra env vars for daemonset nodes
271+
##
272+
extraEnvVarsSecret: ""
260273

261274
[MULTILINE_PARSER]
262275
Name gateway_multiline

0 commit comments

Comments
 (0)