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 5, 2023
1 parent c09462e commit 8388d44
Show file tree
Hide file tree
Showing 4 changed files with 12 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 }}
3 changes: 3 additions & 0 deletions install/kubernetes/tetragon/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ spec:
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
initContainers:
{{- include "initcontainers.extra" . | nindent 6 }}
containers:
{{- if eq .Values.export.mode "stdout" }}
{{- include "container.export.stdout" . | nindent 6 -}}
Expand Down Expand Up @@ -102,6 +104,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 8388d44

Please sign in to comment.