Skip to content

Commit

Permalink
helm: use a specific conf.d directory for --config-dir
Browse files Browse the repository at this point in the history
Use a specific directory for tetragon configmap.

Right now we are using /etc/tetragon/ as the base for configmap,
however in future we want to put CRD rules under that same path
/etc/tetragon/tetragon.rules.d/ .

So change the mountPath where tetragon-config points from:
  /etc/tetragon/ => /etc/tetragon/tetragon.conf.d/

Signed-off-by: Djalal Harouni <tixxdz@gmail.com>
  • Loading branch information
tixxdz authored and kkourt committed Jan 6, 2023
1 parent 343e9f9 commit 977aec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/kubernetes/templates/_container_tetragon.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- /usr/bin/tetragon
{{- end }}
args:
- --config-dir=/etc/tetragon
- --config-dir=/etc/tetragon/tetragon.conf.d/
{{- with .Values.tetragon.argsOverride }}
{{- toYaml . | nindent 2 }}
{{- else }}
Expand All @@ -31,7 +31,7 @@
- mountPath: /var/lib/tetragon/metadata
name: metadata-files
{{- end }}
- mountPath: /etc/tetragon
- mountPath: /etc/tetragon/tetragon.conf.d/
name: tetragon-config
readOnly: true
- mountPath: /sys/fs/bpf
Expand Down

0 comments on commit 977aec2

Please sign in to comment.