fix: Allow revisionHistoryLimit to be set to 0

Signed-off-by: Matt Dainty <matt@bodgit-n-scarper.com>
This commit is contained in:
Matt Dainty 2023-11-16 16:28:41 +00:00
parent 25f8242b94
commit d1716b9f23

View File

@ -16,8 +16,8 @@ spec:
{{- include "external-dns.selectorLabels" . | nindent 6 }}
strategy:
{{- toYaml .Values.deploymentStrategy | nindent 4 }}
{{- with .Values.revisionHistoryLimit }}
revisionHistoryLimit: {{ . }}
{{- if or (kindIs "float64" .Values.revisionHistoryLimit) (kindIs "int64" .Values.revisionHistoryLimit) }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit | int64 }}
{{- end }}
template:
metadata: