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/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: 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: {}