Add tap.stopped to values.yaml and STOPPED to ConfigMap (#1557)

This commit is contained in:
M. Mert Yildiran 2024-07-16 19:03:00 +03:00 committed by GitHub
parent 126f8b48d5
commit e7778fe537
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,7 @@ type TapConfig struct {
PodRegexStr string `yaml:"regex" json:"regex" default:".*"` PodRegexStr string `yaml:"regex" json:"regex" default:".*"`
Namespaces []string `yaml:"namespaces" json:"namespaces" default:"[]"` Namespaces []string `yaml:"namespaces" json:"namespaces" default:"[]"`
BpfOverride string `yaml:"bpfOverride" json:"bpfOverride" default:""` BpfOverride string `yaml:"bpfOverride" json:"bpfOverride" default:""`
Stopped bool `yaml:"stopped" json:"stopped" default:"false"`
Release ReleaseConfig `yaml:"release" json:"release"` Release ReleaseConfig `yaml:"release" json:"release"`
PersistentStorage bool `yaml:"persistentStorage" json:"persistentStorage" default:"false"` PersistentStorage bool `yaml:"persistentStorage" json:"persistentStorage" default:"false"`
PersistentStorageStatic bool `yaml:"persistentStorageStatic" json:"persistentStorageStatic" default:"false"` PersistentStorageStatic bool `yaml:"persistentStorageStatic" json:"persistentStorageStatic" default:"false"`

View File

@ -10,6 +10,7 @@ data:
POD_REGEX: '{{ .Values.tap.regex }}' POD_REGEX: '{{ .Values.tap.regex }}'
NAMESPACES: '{{ gt (len .Values.tap.namespaces) 0 | ternary (join "," .Values.tap.namespaces) "" }}' NAMESPACES: '{{ gt (len .Values.tap.namespaces) 0 | ternary (join "," .Values.tap.namespaces) "" }}'
BPF_OVERRIDE: '{{ .Values.tap.bpfOverride }}' BPF_OVERRIDE: '{{ .Values.tap.bpfOverride }}'
STOPPED: '{{ .Values.tap.stopped }}'
SCRIPTING_SCRIPTS: '{}' SCRIPTING_SCRIPTS: '{}'
INGRESS_ENABLED: '{{ .Values.tap.ingress.enabled }}' INGRESS_ENABLED: '{{ .Values.tap.ingress.enabled }}'
INGRESS_HOST: '{{ .Values.tap.ingress.host }}' INGRESS_HOST: '{{ .Values.tap.ingress.host }}'

View File

@ -19,6 +19,7 @@ tap:
regex: .* regex: .*
namespaces: [] namespaces: []
bpfOverride: "" bpfOverride: ""
stopped: false
release: release:
repo: https://helm.kubeshark.co repo: https://helm.kubeshark.co
name: kubeshark name: kubeshark

View File

@ -225,6 +225,7 @@ data:
POD_REGEX: '.*' POD_REGEX: '.*'
NAMESPACES: '' NAMESPACES: ''
BPF_OVERRIDE: '' BPF_OVERRIDE: ''
STOPPED: 'false'
SCRIPTING_SCRIPTS: '{}' SCRIPTING_SCRIPTS: '{}'
INGRESS_ENABLED: 'false' INGRESS_ENABLED: 'false'
INGRESS_HOST: 'ks.svc.cluster.local' INGRESS_HOST: 'ks.svc.cluster.local'