Skip to content

Commit eed6885

Browse files
committed
Add checksum to OPA deployment to force restart on config change
1 parent f00a57c commit eed6885

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

charts/opa/templates/deployment.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ spec:
1313
{{- include "opa.selectorLabels" . | nindent 6 }}
1414
template:
1515
metadata:
16-
{{- with .Values.podAnnotations }}
1716
annotations:
18-
{{- toYaml . | nindent 8 }}
19-
{{- end }}
17+
checksum/config: {{ .Values.opa.config | toJson | sha256sum }}
18+
{{- with .Values.podAnnotations }}
19+
{{- toYaml . | nindent 8 }}
20+
{{- end }}
2021
labels:
2122
{{- include "opa.selectorLabels" . | nindent 8 }}
2223
spec:

0 commit comments

Comments
 (0)