-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch adds help support for using cgidmap, which was introduced in PR 2776 (e.g., see 0227f5d). cgidmap depends on cri, so this patch also adds helm support for CRI. For example: ``` rthooks: enabled: true interface: "oci-hooks" tetragon: cri: enabled: true socketHostPath: "/var/run/crio/crio.sock" cgidmap: enabled: true ``` Tested with the following zsh script ``` htt="helm template tetragon" hr="./install/kubernetes/tetragon" green='\033[0;32m' clear='\033[0m' printf '%.s─' $(seq 1 $(tput cols)) echo "${green}Enabling cgidmap:${clear}" diff -u =(eval $htt $hr) =(eval $htt --set tetragon.cgidmap.enabled=true $hr) printf '%.s─' $(seq 1 $(tput cols)) echo "${green}Enabling cri and cgidmap:${clear}" diff -u =(eval $htt $hr) =(eval $htt --set tetragon.cgidmap.enabled=true --set tetragon.cri.enabled=true $hr) printf '%.s─' $(seq 1 $(tput cols)) echo "${green}Enabling cri and cgidmap and adding a socket:${clear}" diff -u =(eval $htt $hr) =(eval $htt --set tetragon.cgidmap.enabled=true --set tetragon.cri.enabled=true --set tetragon.cri.socketHostPath="/run/containerd/containerd.sock" $hr) printf '%.s─' $(seq 1 $(tput cols)) echo "${green}Enabling cgidmap and adding a socket without cri:${clear} (diff should be empty)" diff -u =(eval $htt --set tetragon.cgidmap.enabled=true $hr) =(eval $htt --set tetragon.cgidmap.enabled=true --set tetragon.cri.socketHostPath="/run/containerd/containerd.sock" $hr) printf '%.s─' $(seq 1 $(tput cols)) echo Done ``` Signed-off-by: Kornilios Kourtis <[email protected]>
- Loading branch information
Showing
6 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters