From e1f79974f76cac0d57a6f01040b4539eaf937d80 Mon Sep 17 00:00:00 2001 From: Nitin Verma Date: Tue, 26 Aug 2025 09:02:42 +0100 Subject: [PATCH] falcon-sensor: Add support for dnsConfig parameter which is supported as a common parameter across various public helm charts. See more:- https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config --- .../falcon-sensor/templates/daemonset.yaml | 4 ++++ helm-charts/falcon-sensor/values.schema.json | 15 +++++++++++++++ helm-charts/falcon-sensor/values.yaml | 13 +++++++++++++ 3 files changed, 32 insertions(+) diff --git a/helm-charts/falcon-sensor/templates/daemonset.yaml b/helm-charts/falcon-sensor/templates/daemonset.yaml index 7a5f5aaf..17823138 100644 --- a/helm-charts/falcon-sensor/templates/daemonset.yaml +++ b/helm-charts/falcon-sensor/templates/daemonset.yaml @@ -195,6 +195,10 @@ spec: {{- end }} hostNetwork: true dnsPolicy: ClusterFirstWithHostNet + {{- with .Values.node.daemonset.dnsConfig }} + dnsConfig: + {{- toYaml . | nindent 8 }} + {{- end }} hostPID: true hostIPC: true {{- end }} diff --git a/helm-charts/falcon-sensor/values.schema.json b/helm-charts/falcon-sensor/values.schema.json index 14b5177a..9bf4440e 100644 --- a/helm-charts/falcon-sensor/values.schema.json +++ b/helm-charts/falcon-sensor/values.schema.json @@ -217,6 +217,21 @@ "default": {} } } + }, + "dnsConfig": { + "type": "object", + "properties": { + "nameservers": { + "type": "array" + }, + "searches": { + "type": "array" + }, + "options": { + "type": "array" + } + } + } } } }, diff --git a/helm-charts/falcon-sensor/values.yaml b/helm-charts/falcon-sensor/values.yaml index 2cd6e031..5031eef2 100644 --- a/helm-charts/falcon-sensor/values.yaml +++ b/helm-charts/falcon-sensor/values.yaml @@ -79,6 +79,19 @@ node: # Sets the max unavailable nodes. Default is 1 when no value exists. maxUnavailable: 1 + # Specifies the pod DNS configuration. + dnsConfig: {} + # nameservers: + # - 1.2.3.4 + # searches: + # - ns1.svc.cluster-domain.example + # - my.dns.search.suffix + # options: + # - name: ndots + # value: "1" + # - name: attempts + # value: "3" + image: repository: falcon-node-sensor pullPolicy: Always