From 7b0263adb2d2f969533ee470adb82de5686aefbf Mon Sep 17 00:00:00 2001 From: Raphael Campos Date: Thu, 2 May 2024 14:54:42 -0500 Subject: [PATCH 1/2] chore(helm): rename helm field config file --- deploy/helm/tracee/templates/tracee-config.yaml | 4 ++-- deploy/helm/tracee/values.yaml | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/deploy/helm/tracee/templates/tracee-config.yaml b/deploy/helm/tracee/templates/tracee-config.yaml index 4cb07a351427..df447574a45e 100644 --- a/deploy/helm/tracee/templates/tracee-config.yaml +++ b/deploy/helm/tracee/templates/tracee-config.yaml @@ -6,9 +6,9 @@ metadata: labels: {{- include "tracee.labels" . | nindent 4 }} data: - {{- if .Values.traceeConfig }} + {{- if .Values.configFile }} config.yaml: - {{- toYaml .Values.traceeConfig | nindent 4 }} + {{- toYaml .Values.configFile | nindent 4 }} {{- else }} config.yaml: |- cache: diff --git a/deploy/helm/tracee/values.yaml b/deploy/helm/tracee/values.yaml index 76b17b5c9a2a..6de7fbbcc061 100644 --- a/deploy/helm/tracee/values.yaml +++ b/deploy/helm/tracee/values.yaml @@ -57,7 +57,7 @@ affinity: {} webhook: "" # extraWebhookTemplates is a list of additional webhook templates that can be used by -# the traceeConfig or config.output.webhook fields +# the configFile or config.output.webhook fields # in the example below, the goTemplate content will be mounted as /tracee/templates/template1.tmpl extraWebhookTemplates: [] # - name: "template1.tmpl" @@ -74,8 +74,12 @@ extraWebhookTemplates: [] # } # } -traceeConfig: {} +# The configFile field specifies the Tracee configuration file path and can be +# changed directly via CLI command using --set-file configFile=myconfig.yaml +configFile: {} +# This config field holds default values for Tracee configuration and each field +# can be changed individually via CLI command, using --set config.field=value config: blobPerfBufferSize: "" perfBufferSize: 1024 @@ -101,7 +105,7 @@ config: execHash: dev-inode sortEvents: false # uncomment config.output.webhook to enable a single webhook - # to configure multiple webhooks, use the traceeConfig field + # to configure multiple webhooks, use the configFile field # webhook: # name: "webhook1" # contentType: "application/json" From 11066abe76e112e51b1fcd0117390effea1483e0 Mon Sep 17 00:00:00 2001 From: Raphael Campos Date: Thu, 2 May 2024 14:56:34 -0500 Subject: [PATCH 2/2] docs(helm): rename helm field config file --- docs/docs/install/config/kubernetes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/install/config/kubernetes.md b/docs/docs/install/config/kubernetes.md index 6ac870458c24..cf7635705602 100644 --- a/docs/docs/install/config/kubernetes.md +++ b/docs/docs/install/config/kubernetes.md @@ -57,5 +57,5 @@ or to provide a complete config file: ``` helm install tracee aqua/tracee \ --namespace tracee --create-namespace \ - --set-file traceeConfig=myconfig.yaml + --set-file configFile=myconfig.yaml ```