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 e1adc90 commit 7c595b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
2 changes: 1 addition & 1 deletion charts/external-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ secretConfiguration:
deploymentStrategy:
type: Recreate

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

# opt out of the service account token automounting (at the pod level)
Expand Down

0 comments on commit 7c595b9

Please sign in to comment.