Skip to content

Commit 9e6b128

Browse files
Fixed Helm error caused by Nil compare
Inspired on cert-manager/cert-manager#6713 Fixes open-zaak#36
1 parent 757308c commit 9e6b128

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

charts/open-notificaties/templates/configmap.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ data:
2424
{{- end }}
2525
IS_HTTPS: {{ if .Values.settings.isHttps }}"True"{{ else }}"False"{{ end }}
2626
RABBITMQ_HOST: {{ .Values.settings.messageBroker.host }}
27-
{{- if not eq .Values.settings.autoRetry.maxRetries nil }}
27+
{{- /* The if statement below is equivalent to {{- if $value }} but will also return true for 0. */ -}}
28+
{{- if not (has (quote .Values.settings.autoRetry.maxRetries) (list "" (quote ""))) }}
2829
NOTIFICATION_DELIVERY_MAX_RETRIES: {{ .Values.settings.autoRetry.maxRetries | toString | quote }}
2930
{{- end }}
3031
{{- if .Values.settings.autoRetry.backoff }}

0 commit comments

Comments
 (0)