From 67a43520641a4abf5e1075a62864ed43d381675c Mon Sep 17 00:00:00 2001 From: Gil Haim Date: Sun, 22 Mar 2026 12:12:31 +0200 Subject: [PATCH] cloud: Add support for sensor mode (#CPATR-35946) --- charts/cortex-agent/README.md | 1 + charts/cortex-agent/templates/daemonset.yaml | 4 ++++ charts/cortex-agent/values.yaml | 3 +++ 3 files changed, 8 insertions(+) diff --git a/charts/cortex-agent/README.md b/charts/cortex-agent/README.md index 55826c2..395a816 100644 --- a/charts/cortex-agent/README.md +++ b/charts/cortex-agent/README.md @@ -102,6 +102,7 @@ Even when using `--reuse-values` (which uses the values of the previous installa | `namespace.name` | Name of the namespace the agent resides on | Since 1.6.0 | `namespace.create` | Create/Don't create namespace for the agent | Since 1.6.0 | `daemonset.selinuxOptionsSpcT` | Set SELinux Options type to 'spc_t' | Since 1.8.0 +| `agent.sensorMode` | Enable sensor mode for lightweight cloud-native deployments | agent >= 9.3 Note: Helm requires commas in arguments to be escaped. diff --git a/charts/cortex-agent/templates/daemonset.yaml b/charts/cortex-agent/templates/daemonset.yaml index 4ac1b02..04beeb5 100644 --- a/charts/cortex-agent/templates/daemonset.yaml +++ b/charts/cortex-agent/templates/daemonset.yaml @@ -115,6 +115,10 @@ spec: - name: XDR_CLUSTER_TYPE value: "autopilot" {{- end }} + {{- if .Values.agent.sensorMode }} + - name: XDR_SENSOR_MODE + value: "1" + {{- end }} volumeMounts: diff --git a/charts/cortex-agent/values.yaml b/charts/cortex-agent/values.yaml index b9dd4d3..da1448e 100644 --- a/charts/cortex-agent/values.yaml +++ b/charts/cortex-agent/values.yaml @@ -58,6 +58,9 @@ agent: # Name of the kuberenetes cluster - optional clusterName: "" + # Enable sensor mode for lightweight cloud-native deployments + sensorMode: false + daemonset: # node labels to match pods with nodeSelector: