diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index 082a308ff..77433b751 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -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 { diff --git a/helm-chart/templates/12-config-map.yaml b/helm-chart/templates/12-config-map.yaml index 034ee8945..8c6fed1a5 100644 --- a/helm-chart/templates/12-config-map.yaml +++ b/helm-chart/templates/12-config-map.yaml @@ -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 }}' diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 8491e3e4c..e06c051c5 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -84,6 +84,7 @@ tap: - SYS_PTRACE - SYS_RESOURCE - CHECKPOINT_RESTORE + globalFilter: "" logs: file: "" kube: diff --git a/manifests/complete.yaml b/manifests/complete.yaml index 508d59160..7337f00c0 100644 --- a/manifests/complete.yaml +++ b/manifests/complete.yaml @@ -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