Skip to content

Commit

Permalink
fix: add annotation that will restart worker pods on config update (#502
Browse files Browse the repository at this point in the history
)
  • Loading branch information
neoeinstein authored May 19, 2024
1 parent dc5f5c2 commit be207e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions helm-charts/mend-renovate-ce/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ spec:
{{- with .Values.labels.pods }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.annotations }}
annotations:
mend.io/configChecksum: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- with .Values.annotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
spec:
{{- with .Values.podSecurityContext }}
securityContext: {{- toYaml . | nindent 8 }}
Expand Down
5 changes: 3 additions & 2 deletions helm-charts/mend-renovate-ee/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ spec:
{{- with .Values.renovateWorker.labels.pods }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.renovateWorker.annotations }}
annotations:
mend.io/configChecksum: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- with .Values.renovateWorker.annotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
spec:
{{- with .Values.renovateWorker.podSecurityContext }}
securityContext: {{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit be207e7

Please sign in to comment.