Skip to content

Commit

Permalink
feat(chart): enable defining multiple hosttailers
Browse files Browse the repository at this point in the history
Signed-off-by: Bence Csati <[email protected]>
  • Loading branch information
csatib02 committed Jan 20, 2025
1 parent 82d2fd6 commit 4d0ad0b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 40 deletions.
6 changes: 4 additions & 2 deletions charts/logging-operator/templates/logging/hosttailer.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- with .Values.logging.hostTailer }}
{{- if and $.Values.logging.enabled .enabled }}
{{- if and $.Values.logging.enabled $.Values.logging.hostTailers.enabled }}
{{- range .Values.logging.hostTailers.instances }}
{{- if .enabled }}
---
apiVersion: logging-extensions.banzaicloud.io/v1alpha1
kind: HostTailer
Expand Down Expand Up @@ -29,3 +30,4 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
77 changes: 39 additions & 38 deletions charts/logging-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,45 +284,46 @@ logging:
# -- containerOverrides
containerOverrides:

hostTailer:
# -- HostTailer
hostTailers:
# -- Enable all hostTailers
enabled: false
# -- name of HostTailer
name: hosttailer
image:
# -- repository of eventTailer image
repository:
# -- tag of eventTailer image
tag:
# -- pullPolicy of eventTailer image
pullPolicy:
# -- imagePullSecrets of eventTailer image
imagePullSecrets: []
# -- workloadMetaOverrides of HostTailer
workloadMetaOverrides:
# -- workloadOverrides of HostTailer
workloadOverrides:
# -- configure fileTailers of HostTailer
# example:
# - name: sample-file
# path: /var/log/sample-file
# disabled: false
# buffer_max_size:
# buffer_chunk_size:
# skip_long_lines:
# read_from_head: false
# containerOverrides:
# image:
fileTailers: []
# -- configure systemdTailers of HostTailer
# example:
# - name: system-sample
# disabled: false
# systemdFilter: kubelet.service
# maxEntries: 20
# containerOverrides:
# image:
systemdTailers: []
# -- List of hostTailers configurations
instances: []
# - name: hosttailer
# -- Enable hostTailer
# enabled: true
# image:
# -- repository of eventTailer image
# repository:
# -- tag of eventTailer image
# tag:
# -- pullPolicy of eventTailer image
# pullPolicy:
# -- imagePullSecrets of eventTailer image
# imagePullSecrets: []
# -- workloadMetaOverrides of HostTailer
# workloadMetaOverrides: {}
# -- workloadOverrides of HostTailer
# workloadOverrides: {}
# -- configure fileTailers of HostTailer
# fileTailers:
# - name: sample-file
# path: /var/log/sample-file
# disabled: false
# buffer_max_size:
# buffer_chunk_size:
# skip_long_lines:
# read_from_head: false
# containerOverrides:
# image:
# -- configure systemdTailers of HostTailer
# systemdTailers:
# - name: system-sample
# disabled: false
# systemdFilter: kubelet.service
# maxEntries: 20
# containerOverrides:
# image:

testReceiver:
enabled: false
Expand Down

0 comments on commit 4d0ad0b

Please sign in to comment.