Skip to content

Commit

Permalink
Fixed Helm error caused by Nil compare
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenvermeulen committed Jun 18, 2024
1 parent 757308c commit 53c2376
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charts/open-notificaties/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ data:
{{- end }}
IS_HTTPS: {{ if .Values.settings.isHttps }}"True"{{ else }}"False"{{ end }}
RABBITMQ_HOST: {{ .Values.settings.messageBroker.host }}
{{- if not eq .Values.settings.autoRetry.maxRetries nil }}
{{- /* The if statement below is equivalent to {{- if $value }} but will also return true for 0. */ -}}
{{- if not (has (quote .Values.settings.autoRetry.maxRetries) (list "" (quote ""))) }}
NOTIFICATION_DELIVERY_MAX_RETRIES: {{ .Values.settings.autoRetry.maxRetries | toString | quote }}
{{- end }}
{{- if .Values.settings.autoRetry.backoff }}
Expand Down

0 comments on commit 53c2376

Please sign in to comment.