🔨 Add TcpStreamChannelTimeoutMs field to TapConfig struct

This commit is contained in:
M. Mert Yildiran 2024-01-15 23:00:31 +03:00
parent d99bfea0db
commit ddc1dc3d71
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
4 changed files with 36 additions and 30 deletions

View File

@ -155,6 +155,7 @@ type TapConfig struct {
GlobalFilter string `yaml:"globalFilter" json:"globalFilter"`
Metrics MetricsConfig `yaml:"metrics" json:"metrics"`
TrafficSampleRate int `yaml:"trafficSampleRate" json:"trafficSampleRate" default:"100"`
TcpStreamChannelTimeoutMs int `yaml:"tcpStreamChannelTimeoutMs" json:"tcpStreamChannelTimeoutMs" default:"10000"`
}
func (config *TapConfig) PodRegex() *regexp.Regexp {

View File

@ -78,6 +78,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: TCP_STREAM_CHANNEL_TIMEOUT_MS
value: '{{ .Values.tap.tcpStreamChannelTimeoutMs }}'
resources:
limits:
cpu: {{ .Values.tap.resources.sniffer.limits.cpu }}

View File

@ -98,6 +98,7 @@ tap:
metrics:
port: 49100
trafficSampleRate: 100
tcpStreamChannelTimeoutMs: 10000
logs:
file: ""
kube:

View File

@ -350,6 +350,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: TCP_STREAM_CHANNEL_TIMEOUT_MS
value: '10000'
resources:
limits:
cpu: 750m