diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index 13e207f5a..c47f2311b 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -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 { diff --git a/helm-chart/templates/06-front-deployment.yaml b/helm-chart/templates/06-front-deployment.yaml index 72c70dd1d..77398c2a8 100644 --- a/helm-chart/templates/06-front-deployment.yaml +++ b/helm-chart/templates/06-front-deployment.yaml @@ -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) }}' diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 9a4c97999..af013cb27 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -66,6 +66,7 @@ tap: noKernelModule: false telemetry: enabled: true + defaultFilter: "" logs: file: "" kube: