Skip to content

Commit

Permalink
checksum/config already defined (#25)
Browse files Browse the repository at this point in the history
This fixes:

```
Helm install failed for release prom/perses with chart [email protected]: error while running post render on files: map[string]interface {}(nil): yaml: unmarshal errors: line 30: mapping key "checksum/config" already defined at line 29
```

Signed-off-by: Michael <[email protected]>
  • Loading branch information
MichaelSp authored Oct 23, 2024
1 parent 8765ba5 commit 40e29b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charts/perses/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ spec:
labels:
{{- include "perses.selectorLabels" . | nindent 8 }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- if .Values.datasources }}
checksum/config: {{ include (print $.Template.BasePath "/datasources.yaml") . | sha256sum }}
{{- else }}
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
{{- end }}
spec:
serviceAccountName: {{ include "perses.serviceAccountName" . }}
Expand Down

0 comments on commit 40e29b6

Please sign in to comment.