Skip to content

Commit 601228f

Browse files
committed
fix checksum config annotation
1 parent 88a248b commit 601228f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

templates/deployment.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: {{ include "codexdocs.fullname" . }}
5+
{{- with .Values.annotations }}
56
annotations:
6-
checksum/config: {{ .Values.configuration | toString | sha256sum }}
7-
{{- if .Values.annotations }}
8-
{{- toYaml .Values.annotations | nindent 4 }}
9-
{{- end }}
7+
{{- toYaml . | nindent 4 }}
8+
{{- end }}
109
labels:
1110
{{- include "codexdocs.labels" . | nindent 4 }}
1211
spec:
@@ -22,8 +21,9 @@ spec:
2221
{{- include "codexdocs.selectorLabels" . | nindent 6 }}
2322
template:
2423
metadata:
25-
{{- with .Values.podAnnotations }}
2624
annotations:
25+
checksum/config: {{ .Values.configuration | toString | sha256sum }}
26+
{{- with .Values.podAnnotations }}
2727
{{- toYaml . | nindent 8 }}
2828
{{- end }}
2929
labels:

0 commit comments

Comments
 (0)