Skip to content

Commit 81724c9

Browse files
Greg PontejosGreg Pontejos
Greg Pontejos
authored and
Greg Pontejos
committed
New: Add cluster-config-id to sensor init container
1 parent 2a84378 commit 81724c9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

helm-charts/falcon-sensor/templates/clusterrole.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ rules:
1919
- apiGroups:
2020
- ""
2121
resources:
22+
- namespaces
2223
- secrets
2324
{{- if .Values.node.enabled }}
2425
- pods

helm-charts/falcon-sensor/templates/daemonset.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ spec:
105105
- '-c'
106106
- >-
107107
echo "Running /opt/CrowdStrike/falcon-daemonset-init -i";
108-
/opt/CrowdStrike/falcon-daemonset-init -i
108+
/opt/CrowdStrike/falcon-daemonset-init -i;
109+
echo "Running /opt/CrowdStrike/configure-cluster-id";
110+
test -f "/opt/CrowdStrike/configure-cluster-id" && /opt/CrowdStrike/configure-cluster-id || echo "/opt/CrowdStrike/configure-cluster-id not found. Skipping."
109111
{{- if or .Values.node.gke.autopilot .Values.node.daemonset.resources }}
110112
resources:
111113
requests:

0 commit comments

Comments
 (0)