Skip to content

Commit

Permalink
fix: simplify the pod annotation definition
Browse files Browse the repository at this point in the history
  • Loading branch information
mavimo committed Oct 27, 2023
1 parent 5ba5ee2 commit ec33a88
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions charts/kspm-collector/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" .}}
Expand Down

0 comments on commit ec33a88

Please sign in to comment.