Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions helm-charts/falcon-sensor/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,22 @@ Get sidecar container registry config json from global value if it exists
{{- .Values.container.image.pullSecrets.registryConfigJSON | default "" -}}
{{- end -}}
{{- end -}}


{{/*
Extra volume mounts for falcon-sensor container
*/}}
{{- define "falcon-sensor.extraVolumeMounts" -}}
{{- if .Values.container.extraVolumeMounts }}
{{- toYaml .Values.container.extraVolumeMounts }}
{{- end -}}
{{- end -}}

{{/*
Extra volumes for falcon-sensor container
*/}}
{{- define "falcon-sensor.extraVolumes" -}}
{{- if .Values.container.extraVolumes }}
{{- toYaml .Values.container.extraVolumes }}
{{- end -}}
{{- end -}}
3 changes: 3 additions & 0 deletions helm-charts/falcon-sensor/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,14 @@ spec:
volumeMounts:
- name: falconstore
mountPath: /opt/CrowdStrike/falconstore
{{- include "falcon-sensor.extraVolumeMounts" . | nindent 10 }}
volumes:
- name: falconstore
hostPath:
path: /opt/CrowdStrike/falconstore
{{- include "falcon-sensor.extraVolumes" . | nindent 8 }}
serviceAccountName: {{ .Values.serviceAccount.name }}
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
terminationGracePeriodSeconds: {{ .Values.node.terminationGracePeriod }}
{{- if or .Values.node.daemonset.priorityClassName .Values.node.gke.autopilot }}
priorityClassName: {{ include "falcon-sensor.priorityClassName" . }}
Expand Down
10 changes: 10 additions & 0 deletions helm-charts/falcon-sensor/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@
"enabled"
],
"properties": {
"extraVolumeMounts": {
"type": "array"
},
"extraVolumes": {
"type": "array"
},
"tolerations": {
"type": "array"
},
Expand Down Expand Up @@ -497,6 +503,10 @@
"iam.gke.io/gcp-service-account": "my-service-account@my-project.iam.gserviceaccount.com"
}
]
},
"automountServiceAccountToken": {
"type": "boolean",
"default": "false"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions helm-charts/falcon-sensor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,15 @@ container:
cpu: 10m
memory: 20Mi

# Additional volume mounts in falcon sensor container
extraVolumeMounts: []
# Additional volumes in falcon-sensor pod
extraVolumes: []

serviceAccount:
name: crowdstrike-falcon-sa
annotations: {}
automountServiceAccountToken: true

# Deploys the test suite during install for testing purposes.
testing:
Expand Down