Skip to content

Commit

Permalink
fix: Allow revisionHistoryLimit to be set to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Dainty committed Nov 16, 2023
1 parent e1adc90 commit df11bc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions charts/external-dns/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ spec:
{{- include "external-dns.selectorLabels" . | nindent 6 }}
strategy:
{{- toYaml .Values.deploymentStrategy | nindent 4 }}
{{- with .Values.revisionHistoryLimit }}
revisionHistoryLimit: {{ . }}
{{- end }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
template:
metadata:
labels:
Expand Down
4 changes: 2 additions & 2 deletions charts/external-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ secretConfiguration:
deploymentStrategy:
type: Recreate

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

# opt out of the service account token automounting (at the pod level)
automountServiceAccountToken:

0 comments on commit df11bc6

Please sign in to comment.