diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 3e0b719..1c411ad 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -13,11 +13,11 @@ spec: {{- include "openresty.selectorLabels" . | nindent 6 }} template: metadata: - {{- with .Values.podAnnotations }} annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml" ) . | sha256sum }} + {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} - checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml" ) . | sha256sum }} labels: {{- include "openresty.labels" . | nindent 8 }} {{- with .Values.podLabels }}