Skip to content

Commit 8a5a679

Browse files
committed
fix: add if blocks in podAnnotations
1 parent 9eb6abc commit 8a5a679

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

charts/wiremock/templates/_helpers.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ Create the name of the service account to use
6565
Pod annotations
6666
*/}}
6767
{{- define "wiremock.podAnnotations" -}}
68+
{{- if .Values.mappingsAsConfigmap -}}
6869
checksum/configMappings: {{ include (print $.Template.BasePath "/configmap-mappings.yaml") . | sha256sum }}
70+
{{- end -}}
71+
{{- if .Values.responsesAsConfigmap -}}
6972
checksum/configResponses: {{ include (print $.Template.BasePath "/configmap-responses.yaml") . | sha256sum }}
73+
{{- end -}}
7074
{{- if .Values.podAnnotations }}
7175
{{ .Values.podAnnotations }}
7276
{{- end }}

0 commit comments

Comments
 (0)