🔨 Add REPLAY_DISABLED field to ConfigMap

This commit is contained in:
M. Mert Yildiran 2023-12-25 17:34:38 +03:00
parent 15f7a3559a
commit 51968f2aae
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
4 changed files with 4 additions and 0 deletions

View File

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

View File

@ -16,3 +16,4 @@ data:
AUTH_APPROVED_DOMAINS: '{{ gt (len .Values.tap.auth.approvedDomains) 0 | ternary (join "," .Values.tap.auth.approvedDomains) "" }}'
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" "" }}'

View File

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

View File

@ -100,6 +100,7 @@ data:
AUTH_APPROVED_DOMAINS: ''
AUTH_APPROVED_TENANTS: ''
TELEMETRY_DISABLED: ''
REPLAY_DISABLED: ''
---
# Source: kubeshark/templates/02-cluster-role.yaml
apiVersion: rbac.authorization.k8s.io/v1