Skip to content

Commit

Permalink
helm: Set rthooks.podSecurityContext to empty by default
Browse files Browse the repository at this point in the history
[ upstream commit 2558359 ]

Set rthooks.podSecurityContext to empty by default to be consistent with
the security context setting of Tetragon pods. Also note that
"privileged" setting only applies to container security context [^1][^2].

[^1]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#podsecuritycontext-v1-core
[^2]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#securitycontext-v1-core

Signed-off-by: Michi Mutsuzaki <[email protected]>
  • Loading branch information
michi-covalent authored and kkourt committed Sep 19, 2024
1 parent 16d0150 commit 1f90aa2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 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.

4 changes: 2 additions & 2 deletions install/kubernetes/tetragon/README.md

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

3 changes: 1 addition & 2 deletions install/kubernetes/tetragon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,7 @@ rthooks:
# -- priorityClassName for the Tetrargon rthooks pod
priorityClassName: ""
# -- security context for the Tetrargon rthooks pod
podSecurityContext:
privileged: true
podSecurityContext: {}
# -- installDir is the host location where the tetragon-oci-hook binary will be installed
installDir: "/opt/tetragon"
# -- Comma-separated list of namespaces to allow Pod creation for, in case tetragon-oci-hook fails to reach Tetragon agent.
Expand Down

0 comments on commit 1f90aa2

Please sign in to comment.