Skip to content

Commit

Permalink
Restart pods if configmap changed (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
florianrusch-zf authored May 6, 2022
1 parent be038a7 commit b679a7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions deployment/helm/edc-controlplane/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ spec:
{{- include "edc-controlplane.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/env-config: {{ include (print $.Template.BasePath "/configmap-env.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
labels:
{{- include "edc-controlplane.selectorLabels" . | nindent 8 }}
spec:
Expand Down
6 changes: 4 additions & 2 deletions deployment/helm/edc-dataplane/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ spec:
{{- include "edc-dataplane.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/env-config: {{ include (print $.Template.BasePath "/configmap-env.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
labels:
{{- include "edc-dataplane.selectorLabels" . | nindent 8 }}
spec:
Expand Down

0 comments on commit b679a7b

Please sign in to comment.