Skip to content

Commit 07e41a7

Browse files
k8s-ci-robotalitari
authored andcommitted
Merge pull request kubernetes-sigs#4053 from bodgit/fix-revision-history-limit
fix: Allow revisionHistoryLimit to be set to 0
1 parent 1350ef7 commit 07e41a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

charts/external-dns/templates/deployment.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ spec:
1616
{{- include "external-dns.selectorLabels" . | nindent 6 }}
1717
strategy:
1818
{{- toYaml .Values.deploymentStrategy | nindent 4 }}
19-
{{- with .Values.revisionHistoryLimit }}
20-
revisionHistoryLimit: {{ . }}
19+
{{- if or (kindIs "float64" .Values.revisionHistoryLimit) (kindIs "int64" .Values.revisionHistoryLimit) }}
20+
revisionHistoryLimit: {{ .Values.revisionHistoryLimit | int64 }}
2121
{{- end }}
2222
template:
2323
metadata:

0 commit comments

Comments
 (0)