From fc8919981488abdc82b62fc4a4e3853d6ab38726 Mon Sep 17 00:00:00 2001 From: Dirsan Shanmugadasan <87495702+dshanmu-sps@users.noreply.github.com> Date: Mon, 19 Jan 2026 12:13:36 -0500 Subject: [PATCH 1/2] Add support for custom labels and annotations in deployment --- .../templates/deployment.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/helm-charts/falcon-image-analyzer/templates/deployment.yaml b/helm-charts/falcon-image-analyzer/templates/deployment.yaml index d9ae9fa3..48ea19d1 100644 --- a/helm-charts/falcon-image-analyzer/templates/deployment.yaml +++ b/helm-charts/falcon-image-analyzer/templates/deployment.yaml @@ -41,6 +41,17 @@ metadata: namespace: {{ include "falcon-image-analyzer.namespace" . }} labels: {{- include "falcon-image-analyzer.labels" . | nindent 4 }} + {{- if .Values.labels }} + {{- range $key, $value := .Values.labels }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} + {{- if .Values.annotations }} + annotations: + {{- range $key, $value := .Values.annotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} selector: @@ -56,7 +67,12 @@ spec: checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} labels: - {{- include "falcon-image-analyzer.labels" . | nindent 8 }} + {{- include "falcon-image-analyzer.labels" . | nindent 8 }} + {{- if .Values.labels }} + {{- range $key, $value := .Values.labels }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: {{- if or $imagePullSecret $registryConfigJson (.Values.crowdstrikeConfig.dockerAPIToken) }} imagePullSecrets: From fb95a9fc1d4380e6aecc7098cc523841aa447f4c Mon Sep 17 00:00:00 2001 From: Dirsan Shanmugadasan <87495702+dshanmu-sps@users.noreply.github.com> Date: Mon, 19 Jan 2026 12:26:51 -0500 Subject: [PATCH 2/2] Add support for custom labels and annotations in daemonset --- .../templates/daemonset.yaml | 18 +++++++++++++++++- helm-charts/falcon-image-analyzer/values.yaml | 4 ++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/helm-charts/falcon-image-analyzer/templates/daemonset.yaml b/helm-charts/falcon-image-analyzer/templates/daemonset.yaml index 67ed8157..2504c1ce 100644 --- a/helm-charts/falcon-image-analyzer/templates/daemonset.yaml +++ b/helm-charts/falcon-image-analyzer/templates/daemonset.yaml @@ -41,6 +41,17 @@ metadata: namespace: {{ include "falcon-image-analyzer.namespace" . }} labels: {{- include "falcon-image-analyzer.labels" . | nindent 4 }} + {{- if .Values.labels }} + {{- range $key, $value := .Values.labels }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} + {{- if .Values.annotations }} + annotations: + {{- range $key, $value := .Values.annotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: selector: matchLabels: @@ -55,7 +66,12 @@ spec: checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} labels: - {{- include "falcon-image-analyzer.labels" . | nindent 8 }} + {{- include "falcon-image-analyzer.labels" . | nindent 8 }} + {{- if .Values.labels }} + {{- range $key, $value := .Values.labels }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: {{- if or $imagePullSecret $registryConfigJson (.Values.crowdstrikeConfig.dockerAPIToken) }} imagePullSecrets: diff --git a/helm-charts/falcon-image-analyzer/values.yaml b/helm-charts/falcon-image-analyzer/values.yaml index 7bbb6f43..04ab3d72 100644 --- a/helm-charts/falcon-image-analyzer/values.yaml +++ b/helm-charts/falcon-image-analyzer/values.yaml @@ -52,6 +52,10 @@ volumeMounts: - mountPath: /tmp name: tmp-volume +annotations: {} + +labels: {} + podAnnotations: {} podSecurityContext: {}