diff --git a/charts/external-dns/templates/deployment.yaml b/charts/external-dns/templates/deployment.yaml index ef8ad2e20..ef2ecc476 100644 --- a/charts/external-dns/templates/deployment.yaml +++ b/charts/external-dns/templates/deployment.yaml @@ -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: