diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index da71a1b74..54641e67e 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -99,9 +99,9 @@ type SamlConfig struct { } type AuthConfig struct { - Enabled bool `yaml:"enabled" json:"enabled" default:"false"` - Type string `yaml:"type" json:"type" default:"saml"` - Saml SamlConfig `yaml:"saml" json:"saml"` + Enabled bool `yaml:"enabled" json:"enabled" default:"false"` + Type string `yaml:"type" json:"type" default:"saml"` + Saml SamlConfig `yaml:"saml" json:"saml"` } type IngressConfig struct { @@ -140,8 +140,9 @@ type MetricsConfig struct { } type MiscConfig struct { - JsonTTL string `yaml:"jsonTTL" json:"jsonTTL" default:"5m"` - PcapTTL string `yaml:"pcapTTL" json:"pcapTTL" default:"10s"` + JsonTTL string `yaml:"jsonTTL" json:"jsonTTL" default:"5m"` + PcapTTL string `yaml:"pcapTTL" json:"pcapTTL" default:"10s"` + PcapErrorTTL string `yaml:"pcapErrorTTL" json:"pcapErrorTTL" default:"60s"` } type TapConfig struct { diff --git a/helm-chart/templates/12-config-map.yaml b/helm-chart/templates/12-config-map.yaml index 9ef3268bf..56b019346 100644 --- a/helm-chart/templates/12-config-map.yaml +++ b/helm-chart/templates/12-config-map.yaml @@ -25,3 +25,4 @@ data: KUBESHARK_CLOUD_API_URL: 'https://api.kubeshark.co' JSON_TTL: '{{ .Values.tap.misc.jsonTTL }}' PCAP_TTL: '{{ .Values.tap.misc.pcapTTL }}' + PCAP_ERROR_TTL: '{{ .Values.tap.misc.pcapErrorTTL }}' diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index bd35669b8..ba19a8b98 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -112,6 +112,7 @@ tap: misc: jsonTTL: 5m pcapTTL: 10s + pcapErrorTTL: 60s logs: file: "" kube: diff --git a/manifests/complete.yaml b/manifests/complete.yaml index 3eb70a245..01ed344ad 100644 --- a/manifests/complete.yaml +++ b/manifests/complete.yaml @@ -157,6 +157,7 @@ data: KUBESHARK_CLOUD_API_URL: 'https://api.kubeshark.co' JSON_TTL: '5m' PCAP_TTL: '10s' + PCAP_ERROR_TTL: '60s' --- # Source: kubeshark/templates/02-cluster-role.yaml apiVersion: rbac.authorization.k8s.io/v1