🔨 Add PcapErrorTTL field to MiscConfig

This commit is contained in:
M. Mert Yildiran 2024-02-06 01:32:07 +03:00
parent 4da51c40b9
commit 92dab2e2f7
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
4 changed files with 9 additions and 5 deletions

View File

@ -99,9 +99,9 @@ type SamlConfig struct {
} }
type AuthConfig struct { type AuthConfig struct {
Enabled bool `yaml:"enabled" json:"enabled" default:"false"` Enabled bool `yaml:"enabled" json:"enabled" default:"false"`
Type string `yaml:"type" json:"type" default:"saml"` Type string `yaml:"type" json:"type" default:"saml"`
Saml SamlConfig `yaml:"saml" json:"saml"` Saml SamlConfig `yaml:"saml" json:"saml"`
} }
type IngressConfig struct { type IngressConfig struct {
@ -140,8 +140,9 @@ type MetricsConfig struct {
} }
type MiscConfig struct { type MiscConfig struct {
JsonTTL string `yaml:"jsonTTL" json:"jsonTTL" default:"5m"` JsonTTL string `yaml:"jsonTTL" json:"jsonTTL" default:"5m"`
PcapTTL string `yaml:"pcapTTL" json:"pcapTTL" default:"10s"` PcapTTL string `yaml:"pcapTTL" json:"pcapTTL" default:"10s"`
PcapErrorTTL string `yaml:"pcapErrorTTL" json:"pcapErrorTTL" default:"60s"`
} }
type TapConfig struct { type TapConfig struct {

View File

@ -25,3 +25,4 @@ data:
KUBESHARK_CLOUD_API_URL: 'https://api.kubeshark.co' KUBESHARK_CLOUD_API_URL: 'https://api.kubeshark.co'
JSON_TTL: '{{ .Values.tap.misc.jsonTTL }}' JSON_TTL: '{{ .Values.tap.misc.jsonTTL }}'
PCAP_TTL: '{{ .Values.tap.misc.pcapTTL }}' PCAP_TTL: '{{ .Values.tap.misc.pcapTTL }}'
PCAP_ERROR_TTL: '{{ .Values.tap.misc.pcapErrorTTL }}'

View File

@ -112,6 +112,7 @@ tap:
misc: misc:
jsonTTL: 5m jsonTTL: 5m
pcapTTL: 10s pcapTTL: 10s
pcapErrorTTL: 60s
logs: logs:
file: "" file: ""
kube: kube:

View File

@ -157,6 +157,7 @@ data:
KUBESHARK_CLOUD_API_URL: 'https://api.kubeshark.co' KUBESHARK_CLOUD_API_URL: 'https://api.kubeshark.co'
JSON_TTL: '5m' JSON_TTL: '5m'
PCAP_TTL: '10s' PCAP_TTL: '10s'
PCAP_ERROR_TTL: '60s'
--- ---
# Source: kubeshark/templates/02-cluster-role.yaml # Source: kubeshark/templates/02-cluster-role.yaml
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1