Merge branch 'master' into front-base-path

This commit is contained in:
Alon Girmonsky 2025-03-24 11:07:54 -07:00 committed by GitHub
commit 5e9ee83162
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 0 deletions

View File

@ -61,4 +61,5 @@ func init() {
tapCmd.Flags().Bool(configStructs.IngressEnabledLabel, defaultTapConfig.Ingress.Enabled, "Enable Ingress") tapCmd.Flags().Bool(configStructs.IngressEnabledLabel, defaultTapConfig.Ingress.Enabled, "Enable Ingress")
tapCmd.Flags().Bool(configStructs.TelemetryEnabledLabel, defaultTapConfig.Telemetry.Enabled, "Enable/disable Telemetry") tapCmd.Flags().Bool(configStructs.TelemetryEnabledLabel, defaultTapConfig.Telemetry.Enabled, "Enable/disable Telemetry")
tapCmd.Flags().Bool(configStructs.ResourceGuardEnabledLabel, defaultTapConfig.ResourceGuard.Enabled, "Enable/disable resource guard") tapCmd.Flags().Bool(configStructs.ResourceGuardEnabledLabel, defaultTapConfig.ResourceGuard.Enabled, "Enable/disable resource guard")
tapCmd.Flags().Bool(configStructs.WatchdogEnabled, defaultTapConfig.Watchdog.Enabled, "Enable/disable watchdog")
} }

View File

@ -44,6 +44,7 @@ const (
PcapKubeconfig = "kubeconfig" PcapKubeconfig = "kubeconfig"
PcapDumpEnabled = "enabled" PcapDumpEnabled = "enabled"
PcapTime = "time" PcapTime = "time"
WatchdogEnabled = "watchdogEnabled"
) )
type ResourceLimitsHub struct { type ResourceLimitsHub struct {
@ -217,6 +218,10 @@ type SentryConfig struct {
Environment string `yaml:"environment" json:"environment" default:"production"` Environment string `yaml:"environment" json:"environment" default:"production"`
} }
type WatchdogConfig struct {
Enabled bool `yaml:"enabled" json:"enabled" default:"true"`
}
type CapabilitiesConfig struct { type CapabilitiesConfig struct {
NetworkCapture []string `yaml:"networkCapture" json:"networkCapture" default:"[]"` NetworkCapture []string `yaml:"networkCapture" json:"networkCapture" default:"[]"`
ServiceMeshCapture []string `yaml:"serviceMeshCapture" json:"serviceMeshCapture" default:"[]"` ServiceMeshCapture []string `yaml:"serviceMeshCapture" json:"serviceMeshCapture" default:"[]"`
@ -317,6 +322,7 @@ type TapConfig struct {
Debug bool `yaml:"debug" json:"debug" default:"false"` Debug bool `yaml:"debug" json:"debug" default:"false"`
Telemetry TelemetryConfig `yaml:"telemetry" json:"telemetry"` Telemetry TelemetryConfig `yaml:"telemetry" json:"telemetry"`
ResourceGuard ResourceGuardConfig `yaml:"resourceGuard" json:"resourceGuard"` ResourceGuard ResourceGuardConfig `yaml:"resourceGuard" json:"resourceGuard"`
Watchdog WatchdogConfig `yaml:"watchdog" json:"watchdog"`
Sentry SentryConfig `yaml:"sentry" json:"sentry"` Sentry SentryConfig `yaml:"sentry" json:"sentry"`
DefaultFilter string `yaml:"defaultFilter" json:"defaultFilter" default:"!dns and !error"` DefaultFilter string `yaml:"defaultFilter" json:"defaultFilter" default:"!dns and !error"`
LiveConfigMapChangesDisabled bool `yaml:"liveConfigMapChangesDisabled" json:"liveConfigMapChangesDisabled" default:"false"` LiveConfigMapChangesDisabled bool `yaml:"liveConfigMapChangesDisabled" json:"liveConfigMapChangesDisabled" default:"false"`

View File

@ -68,6 +68,9 @@ spec:
- /hostproc - /hostproc
{{- if .Values.tap.resourceGuard.enabled }} {{- if .Values.tap.resourceGuard.enabled }}
- -enable-resource-guard - -enable-resource-guard
{{- end }}
{{- if .Values.tap.watchdog.enabled }}
- -enable-watchdog
{{- end }} {{- end }}
- -resolution-strategy - -resolution-strategy
- '{{ .Values.tap.misc.resolutionStrategy }}' - '{{ .Values.tap.misc.resolutionStrategy }}'

View File

@ -141,6 +141,8 @@ tap:
enabled: true enabled: true
resourceGuard: resourceGuard:
enabled: false enabled: false
watchdog:
enabled: true
sentry: sentry:
enabled: false enabled: false
environment: production environment: production