Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fluent-bit] Add support for additional watch paths in hot reload #578

Merged
merged 13 commits into from
Jan 16, 2025
Prev Previous commit
Next Next commit
adjust template
Signed-off-by: Daniel Kalotai <daniel.kalotai@sap.com>
  • Loading branch information
danielkalotai committed Jan 14, 2025
commit faa86501f85f03d241e4ddff51c60c01dbbb59ab
6 changes: 3 additions & 3 deletions charts/fluent-bit/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ containers:
- {{ printf "-webhook-url=http://localhost:%s/api/v2/reload" (toString .Values.metricsPort) }}
- -volume-dir=/watch/config
- -volume-dir=/watch/scripts
{{- range $i, $v := .Values.hotReload.extraWatchVolumes }}
- -volume-dir=/watch/extra-{{ $i }}
{{- range $i, _ := .Values.hotReload.extraWatchVolumes }}
- {{ printf "-volume-dir=/watch/extra-%s" (int $i) }}
{{- end }}
volumeMounts:
- name: config
Expand All @@ -118,7 +118,7 @@ containers:
mountPath: /watch/scripts
{{- range $i, $v := .Values.hotReload.extraWatchVolumes }}
- name: {{ $v }}
mountPath: /watch/extra-{{ $i }}
mountPath: {{ printf "/watch/extra-%s" (int $i) }}
{{- end }}
{{- with .Values.hotReload.resources }}
resources:
Expand Down