templating bpf privileged helm value.

This commit is contained in:
Alon Girmonsky 2024-12-26 12:29:18 -08:00
parent b377bfe35f
commit d4d1001cd8
3 changed files with 6 additions and 0 deletions

View File

@ -178,6 +178,7 @@ type CapabilitiesConfig struct {
NetworkCapture []string `yaml:"networkCapture" json:"networkCapture" default:"[]"`
ServiceMeshCapture []string `yaml:"serviceMeshCapture" json:"serviceMeshCapture" default:"[]"`
EBPFCapture []string `yaml:"ebpfCapture" json:"ebpfCapture" default:"[]"`
BpfPrivileged bool `yaml:"bpfPrivileged" json:"bpfPrivileged" default:"false"`
}
type MetricsConfig struct {

View File

@ -37,8 +37,10 @@ spec:
{{- end }}
imagePullPolicy: {{ .Values.tap.docker.imagePullPolicy }}
name: check-bpf
{{- if .Values.tap.capabilities.bpfPrivileged }}
securityContext:
privileged: true
{{- end }}
volumeMounts:
- mountPath: /sys
name: sys
@ -53,8 +55,10 @@ spec:
{{- end }}
imagePullPolicy: {{ .Values.tap.docker.imagePullPolicy }}
name: init-bpf
{{- if .Values.tap.capabilities.bpfPrivileged }}
securityContext:
privileged: true
{{- end }}
volumeMounts:
- mountPath: /sys
name: sys

View File

@ -126,6 +126,7 @@ tap:
- SYS_PTRACE
- SYS_RESOURCE
- IPC_LOCK
bpfPrivileged: false
globalFilter: ""
enabledDissectors:
- amqp