Skip to content

Commit

Permalink
fix(templates): tolerations should return list instead of object
Browse files Browse the repository at this point in the history
  • Loading branch information
ralgozino committed Nov 27, 2024
1 parent 8263a36 commit b83092a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/distribution/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
(index .spec.distribution.common "tolerations") -}}

{{- if and (not $tolerations) (index . "returnEmptyInsteadOfNull") .returnEmptyInsteadOfNull -}}
{{- "{}" | indent $indent | trim -}}
{{- "[]" | indent $indent | trim -}}
{{- else -}}
{{- $tolerations | toYaml | indent $indent | trim -}}
{{- end -}}
Expand Down

0 comments on commit b83092a

Please sign in to comment.