Skip to content

Commit

Permalink
helm: Add extensions templates
Browse files Browse the repository at this point in the history
The goal is to make it easy to build custom distributions of Tetragon Helm
chart.

Signed-off-by: Anna Kapuscinska <[email protected]>
  • Loading branch information
lambdanis committed Dec 12, 2023
1 parent 2cdb647 commit 221bdad
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
mountPath: {{ .mountPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- include "tetragon.volumemounts.extra" . | nindent 4 }}
env:
- name: NODE_NAME
valueFrom:
Expand Down
7 changes: 7 additions & 0 deletions install/kubernetes/tetragon/templates/_extensions.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{- define "configmap.extra" -}}{{- end }}

{{- define "volumes.extra" -}}{{- end }}

{{- define "tetragon.volumemounts.extra" -}}{{- end }}

{{- define "initcontainers.extra" -}}{{- end }}
2 changes: 2 additions & 0 deletions install/kubernetes/tetragon/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ spec:
{{- if .Values.tetragon.ociHookSetup.enabled }}
{{- include "container.tetragon-oci-hook-setup" . | nindent 6 -}}
{{- end }}
{{- include "initcontainers.extra" . | nindent 6 }}
containers:
{{- if eq .Values.export.mode "stdout" }}
{{- include "container.export.stdout" . | nindent 6 -}}
Expand Down Expand Up @@ -116,6 +117,7 @@ spec:
hostPath:
path: {{ .mountPath }}
{{- end }}
{{- include "volumes.extra" . | nindent 6 }}
{{- with .Values.updateStrategy }}
updateStrategy:
{{- toYaml . | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ data:
enable-msg-handling-latency: "true"
{{- end }}
enable-pod-info: {{ .Values.tetragonOperator.podInfo.enabled | quote }}
{{- include "configmap.extra" . | nindent 2 }}

0 comments on commit 221bdad

Please sign in to comment.