From 75931d91233cfc330ccc0093b4717b3e8cdca60d Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Thu, 6 Jun 2024 04:17:03 +0300 Subject: [PATCH] Add `Profile` field to `MiscConfig` struct --- config/configStructs/tapConfig.go | 1 + helm-chart/templates/09-worker-daemon-set.yaml | 2 ++ helm-chart/values.yaml | 1 + manifests/complete.yaml | 2 ++ 4 files changed, 6 insertions(+) diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index 4b3b2e6a6..c24beb0bc 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -155,6 +155,7 @@ type MiscConfig struct { TcpStreamChannelTimeoutMs int `yaml:"tcpStreamChannelTimeoutMs" json:"tcpStreamChannelTimeoutMs" default:"10000"` TcpStreamChannelTimeoutShow bool `yaml:"tcpStreamChannelTimeoutShow" json:"tcpStreamChannelTimeoutShow" default:"false"` ResolutionStrategy string `yaml:"resolutionStrategy" json:"resolutionStrategy" default:"auto"` + Profile bool `yaml:"profile" json:"profile" default:"false"` } type TapConfig struct { diff --git a/helm-chart/templates/09-worker-daemon-set.yaml b/helm-chart/templates/09-worker-daemon-set.yaml index 3db7bf9a6..5502f73a2 100644 --- a/helm-chart/templates/09-worker-daemon-set.yaml +++ b/helm-chart/templates/09-worker-daemon-set.yaml @@ -94,6 +94,8 @@ spec: value: '{{ .Values.tap.misc.tcpStreamChannelTimeoutShow }}' - name: KUBESHARK_CLOUD_API_URL value: 'https://api.kubeshark.co' + - name: PROFILING_ENABLED + value: '{{ .Values.tap.misc.profile }}' resources: limits: cpu: {{ .Values.tap.resources.sniffer.limits.cpu }} diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index a4c172cda..be9144a1e 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -123,6 +123,7 @@ tap: tcpStreamChannelTimeoutMs: 10000 tcpStreamChannelTimeoutShow: false resolutionStrategy: auto + profile: false logs: file: "" grep: "" diff --git a/manifests/complete.yaml b/manifests/complete.yaml index b0e802813..63cbe0299 100644 --- a/manifests/complete.yaml +++ b/manifests/complete.yaml @@ -476,6 +476,8 @@ spec: value: 'false' - name: KUBESHARK_CLOUD_API_URL value: 'https://api.kubeshark.co' + - name: PROFILING_ENABLED + value: 'false' resources: limits: cpu: 750m