Skip to content

Commit

Permalink
feat(fluent-bit): Add support for additional watch paths in hot reload
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kalotai <[email protected]>
  • Loading branch information
danielkalotai committed Dec 16, 2024
1 parent f9cad15 commit 9ea5b33
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/fluent-bit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ keywords:
- logging
- fluent-bit
- fluentd
version: 0.48.3
version: 0.48.4
appVersion: 3.2.2
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/fluentd/fluentbit/icon/fluentbit-icon-color.svg
home: https://fluentbit.io/
Expand All @@ -23,4 +23,4 @@ maintainers:
annotations:
artifacthub.io/changes: |
- kind: changed
description: "Updated Fluent Bit OCI image to v3.2.2."
description: "Adding additional watch paths for hot reload"
7 changes: 7 additions & 0 deletions charts/fluent-bit/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,18 @@ containers:
- {{ printf "-webhook-url=http://localhost:%s/api/v2/reload" (toString .Values.metricsPort) }}
- -volume-dir=/watch/config
- -volume-dir=/watch/scripts
{{- range .Values.hotReload.additionalWatchPaths }}
- -volume-dir={{ .path }}
{{- end }}
volumeMounts:
- name: config
mountPath: /watch/config
- name: luascripts
mountPath: /watch/scripts
{{- range .Values.hotReload.additionalWatchPaths }}
- name: {{ .name }}
mountPath: {{ .path }}
{{- end }}
{{- with .Values.hotReload.resources }}
resources:
{{- toYaml . | nindent 12 }}
Expand Down
1 change: 1 addition & 0 deletions charts/fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ logLevel: info

hotReload:
enabled: false
additionalWatchPaths: []
image:
repository: ghcr.io/jimmidyson/configmap-reload
tag: v0.14.0
Expand Down

0 comments on commit 9ea5b33

Please sign in to comment.