Skip to content

Commit

Permalink
Merge pull request #352 from JonBruchim/main
Browse files Browse the repository at this point in the history
cdp: set ClusterFirstWithHostNet for node sensor
  • Loading branch information
redhatrises authored Jan 17, 2025
2 parents 1f83467 + 7c39841 commit 1574e41
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions helm-charts/falcon-sensor/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ metadata:
app.kubernetes.io/name: {{ include "falcon-sensor.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{ if .Values.container.enabled }}
{{- if .Values.container.enabled }}
app.kubernetes.io/component: "container_sensor"
{{ else if .Values.node.enabled }}
app.kubernetes.io/component: "kernel_sensor"
{{ end }}
{{ end -}}
crowdstrike.com/provider: crowdstrike
helm.sh/chart: {{ include "falcon-sensor.chart" . }}
rules:
- apiGroups:
- ""
resources:
- secrets
{{- if and .Values.node.enabled }}
{{- if .Values.node.enabled }}
- pods
- services
- nodes
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/falcon-sensor/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ metadata:
app.kubernetes.io/name: {{ include "falcon-sensor.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{ if .Values.container.enabled }}
{{- if .Values.container.enabled }}
app.kubernetes.io/component: "container_sensor"
{{ else if .Values.node.enabled }}
app.kubernetes.io/component: "kernel_sensor"
{{ end }}
{{ end -}}
crowdstrike.com/provider: crowdstrike
helm.sh/chart: {{ include "falcon-sensor.chart" . }}
subjects:
Expand Down
4 changes: 4 additions & 0 deletions helm-charts/falcon-sensor/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ metadata:
app.kubernetes.io/name: {{ include "falcon-sensor.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.container.enabled }}
app.kubernetes.io/component: "container_sensor"
{{ else if .Values.node.enabled }}
app.kubernetes.io/component: "kernel_sensor"
{{ end -}}
crowdstrike.com/provider: crowdstrike
helm.sh/chart: {{ include "falcon-sensor.chart" . }}
data:
Expand Down
1 change: 1 addition & 0 deletions helm-charts/falcon-sensor/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ spec:
priorityClassName: {{ include "falcon-sensor.priorityClassName" . }}
{{- end }}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
hostPID: true
hostIPC: true
{{- end }}

0 comments on commit 1574e41

Please sign in to comment.