Add DefaultFilter field to TapConfig

This commit is contained in:
M. Mert Yildiran 2023-12-18 16:51:55 +03:00
parent 28bfbf4186
commit d3f2cdbf0e
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
3 changed files with 3 additions and 1 deletions

View File

@ -131,6 +131,7 @@ type TapConfig struct {
Debug bool `yaml:"debug" json:"debug" default:"false"`
NoKernelModule bool `yaml:"noKernelModule" json:"noKernelModule" default:"false"`
Telemetry TelemetryConfig `yaml:"telemetry" json:"telemetry"`
DefaultFilter string `yaml:"defaultFilter" json:"defaultFilter"`
}
func (config *TapConfig) PodRegex() *regexp.Regexp {

View File

@ -25,7 +25,7 @@ spec:
containers:
- env:
- name: REACT_APP_DEFAULT_FILTER
value: ' '
value: '{{ not (eq .Values.tap.defaultFilter "") | ternary .Values.tap.defaultFilter " " }}'
- name: REACT_APP_AUTH_ENABLED
value: '{{ .Values.tap.auth.enabled }}'
image: '{{ .Values.tap.docker.registry }}/front:{{ not (eq .Values.tap.docker.tag "") | ternary .Values.tap.docker.tag (printf "v%s" .Chart.Version) }}'

View File

@ -66,6 +66,7 @@ tap:
noKernelModule: false
telemetry:
enabled: true
defaultFilter: ""
logs:
file: ""
kube: