🔨 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 {
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 {

View File

@ -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 }}'

View File

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

View File

@ -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