Skip to content

Commit 270adbf

Browse files
authored
Merge pull request #279 from congiv/post-delete-hook-toggle
feat(falcon-sensor): allow helm hook manifests to be disabled
2 parents 22829f7 + ccdf80e commit 270adbf

File tree

6 files changed

+26
-5
lines changed

6 files changed

+26
-5
lines changed

helm-charts/falcon-sensor/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.26.2
18+
version: 1.26.3
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
23-
appVersion: 1.26.2
23+
appVersion: 1.26.3
2424

2525
keywords:
2626
- CrowdStrike

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.node.enabled }}
1+
{{- if and .Values.node.enabled .Values.node.hooks.postDelete.enabled }}
22
apiVersion: apps/v1
33
kind: DaemonSet
44
metadata:

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.node.enabled }}
1+
{{- if and .Values.node.enabled .Values.node.hooks.postDelete.enabled }}
22
{{- if .Values.node.image.registryConfigJSON }}
33
{{- $registry := .Values.node.image.registryConfigJSON }}
44
apiVersion: v1

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if and .Values.node.enabled .Values.node.hooks.postDelete.enabled }}
12
apiVersion: v1
23
kind: ServiceAccount
34
metadata:
@@ -10,4 +11,5 @@ metadata:
1011
helm.sh/chart: {{ include "falcon-sensor.chart" . }}
1112
annotations:
1213
"helm.sh/hook": post-delete
13-
"helm.sh/hook-weight": "0"
14+
"helm.sh/hook-weight": "0"
15+
{{- end }}

helm-charts/falcon-sensor/values.schema.json

+14
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,20 @@
255255
"type": "integer",
256256
"default": "30",
257257
"pattern": "^[0-9]+$"
258+
},
259+
"hooks": {
260+
"type": "object",
261+
"properties": {
262+
"postDelete": {
263+
"type": "object",
264+
"properties": {
265+
"enabled": {
266+
"type": "boolean",
267+
"default": "true"
268+
}
269+
}
270+
}
271+
}
258272
}
259273
}
260274
},

helm-charts/falcon-sensor/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ node:
9999
# How long to wait for Falcon pods to stop gracefully
100100
terminationGracePeriod: 30
101101

102+
hooks:
103+
# Settings for the node post-delete helm hook
104+
postDelete:
105+
enabled: true
106+
102107
container:
103108
# When enabled, Helm chart deploys the Falcon Container Sensor to Pods through Webhooks
104109
enabled: false

0 commit comments

Comments
 (0)