Skip to content

Commit

Permalink
checksum/config already defined
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
```
  • Loading branch information
MichaelSp authored Oct 10, 2024
1 parent 0f8b747 commit 5ba0675
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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 Expand Up @@ -98,4 +99,4 @@ spec:
- name: datasources
configMap:
name: {{ include "perses.fullname" . }}-datasources
{{- end }}
{{- end }}

0 comments on commit 5ba0675

Please sign in to comment.