Skip to content

Commit

Permalink
add config checksum annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
tuananhnguyen-ct authored and sstarcher committed Aug 3, 2021
1 parent b62ecef commit 5f17a04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ spec:
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
spec:
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down

0 comments on commit 5f17a04

Please sign in to comment.