From d1716b9f230f183438d5a23d6e827f95ac804004 Mon Sep 17 00:00:00 2001 From: Matt Dainty Date: Thu, 16 Nov 2023 16:28:41 +0000 Subject: [PATCH] fix: Allow revisionHistoryLimit to be set to 0 Signed-off-by: Matt Dainty --- charts/external-dns/templates/deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: