🔨 Add GLOBAL_FILTER field to ConfigMap

This commit is contained in:
M. Mert Yildiran 2023-12-27 23:58:17 +03:00
parent 2223cad038
commit 6c06307d68
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
4 changed files with 6 additions and 0 deletions

View File

@ -141,6 +141,7 @@ type TapConfig struct {
DefaultFilter string `yaml:"defaultFilter" json:"defaultFilter"`
ReplayDisabled bool `yaml:"replayDisabled" json:"replayDisabled" default:"false"`
Capabilities CapabilitiesConfig `yaml:"capabilities" json:"capabilities"`
GlobalFilter string `yaml:"globalFilter" json:"globalFilter"`
}
func (config *TapConfig) PodRegex() *regexp.Regexp {

View File

@ -16,3 +16,4 @@ data:
AUTH_APPROVED_TENANTS: '{{ gt (len .Values.tap.auth.approvedTenants) 0 | ternary (join "," .Values.tap.auth.approvedTenants) "" }}'
TELEMETRY_DISABLED: '{{ not .Values.tap.telemetry.enabled | ternary "true" "" }}'
REPLAY_DISABLED: '{{ .Values.tap.replayDisabled | ternary "true" "" }}'
GLOBAL_FILTER: '{{ .Values.tap.globalFilter }}'

View File

@ -84,6 +84,7 @@ tap:
- SYS_PTRACE
- SYS_RESOURCE
- CHECKPOINT_RESTORE
globalFilter: ""
logs:
file: ""
kube:

View File

@ -101,6 +101,7 @@ data:
AUTH_APPROVED_TENANTS: ''
TELEMETRY_DISABLED: ''
REPLAY_DISABLED: ''
GLOBAL_FILTER: ''
---
# Source: kubeshark/templates/02-cluster-role.yaml
apiVersion: rbac.authorization.k8s.io/v1
@ -523,6 +524,8 @@ spec:
value: ' '
- name: REACT_APP_AUTH_ENABLED
value: 'false'
- name: REACT_APP_REPLAY_DISABLED
value: 'false'
image: 'docker.io/kubeshark/front:v52.0.0'
imagePullPolicy: Always
name: kubeshark-front