Skip to content

Commit

Permalink
refactoring to extraWatchVolumes
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kalotai <[email protected]>
  • Loading branch information
danielkalotai committed Jan 9, 2025
1 parent f8567e2 commit fffd725
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions charts/fluent-bit/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,17 @@ 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 }}
{{- range $i, $v := .Values.hotReload.extraWatchVolumes }}
- -volume-dir=/watch/extra-{{ $i }}
{{- end }}
volumeMounts:
- name: config
mountPath: /watch/config
- name: luascripts
mountPath: /watch/scripts
{{- range .Values.hotReload.additionalWatchPaths }}
- name: {{ .name }}
mountPath: {{ .path }}
{{- range $i, $v := .Values.hotReload.extraWatchVolumes }}
- name: {{ $v }}
mountPath: /watch/extra-{{ $i }}
{{- end }}
{{- with .Values.hotReload.resources }}
resources:
Expand Down
2 changes: 1 addition & 1 deletion charts/fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ logLevel: info

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

0 comments on commit fffd725

Please sign in to comment.