Skip to content

Commit

Permalink
helm: Set rthooks.podSecurityContext to empty by default
Browse files Browse the repository at this point in the history
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 <michi@isovalent.com>
  • Loading branch information
michi-covalent committed Sep 18, 2024
1 parent 451f921 commit 2558359
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 @@ -372,8 +372,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 2558359

Please sign in to comment.