Skip to content

Commit

Permalink
helm: Added dedicated persistent enforcement flag
Browse files Browse the repository at this point in the history
Added `tetragon.enableKeepSensorsOnExit` to enable persistent
enforcement of the sensors although the Tetragon process is
gone/exited.

Signed-off-by: Philip Schmid <[email protected]>
  • Loading branch information
PhilipSchmid authored and jrfastab committed Oct 4, 2024
1 parent 6c7e7c5 commit 53cf82b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/content/en/docs/reference/helm-chart.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions install/kubernetes/tetragon/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions install/kubernetes/tetragon/templates/tetragon_configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,7 @@ data:
event-cache-retries: {{ .Values.tetragon.eventCacheRetries | quote }}
event-cache-retry-delay: {{ .Values.tetragon.eventCacheRetryDelay | quote }}
{{- include "configmap.extra" . | nindent 2 }}
{{- if .Values.tetragon.enableKeepSensorsOnExit }}
keep-sensors-on-exit: "true"
release-pinned-bpf: "false"
{{- end }}
2 changes: 2 additions & 0 deletions install/kubernetes/tetragon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ tetragon:
eventCacheRetries: 15
# -- Configure the delay (in seconds) between retires in tetragon's event cache.
eventCacheRetryDelay: 2
# -- Persistent enforcement to allow the enforcement policy to continue running even when its Tetragon process is gone.
enableKeepSensorsOnExit: false
# Tetragon Operator settings
tetragonOperator:
# -- Enables the Tetragon Operator.
Expand Down

0 comments on commit 53cf82b

Please sign in to comment.