Skip to content

Commit

Permalink
fix: Allow revisionHistoryLimit to be set to 0
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Dainty <matt@bodgit-n-scarper.com>
  • Loading branch information
bodgit committed Dec 7, 2023
1 parent 25f8242 commit b9c761d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/external-dns/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions charts/external-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,6 @@ secretConfiguration:
subPath:
# -- `Secret` data.
data: {}

# Specifies the number of old ReplicaSets to retain to allow rollback with the Deployment.
revisionHistoryLimit:

0 comments on commit b9c761d

Please sign in to comment.