diff --git a/charts/kspm-collector/templates/deployment.yaml b/charts/kspm-collector/templates/deployment.yaml index 66146aae4..e9d63a6bc 100644 --- a/charts/kspm-collector/templates/deployment.yaml +++ b/charts/kspm-collector/templates/deployment.yaml @@ -14,14 +14,12 @@ spec: app.kubernetes.io/instance: {{ .Release.Name }} template: metadata: - {{- if .Values.podAnnotations }} - annotations: + labels: + app.kubernetes.io/name: {{ include "kspmCollector.name" . }} {{- with .Values.podAnnotations }} + annotations: {{- toYaml . | nindent 8 }} {{- end }} - {{- end }} - labels: - app.kubernetes.io/name: {{ include "kspmCollector.name" . }} {{ include "kspmCollector.labels" . | indent 8 }} spec: serviceAccountName: {{ template "kspmCollector.serviceAccountName" .}}