Skip to content

Commit

Permalink
Allow to configure revisionHistoryLimit on the K8s Deployment resource
Browse files Browse the repository at this point in the history
Signed-off-by: Arnold Bechtoldt <[email protected]>
  • Loading branch information
arnisoph committed Oct 31, 2023
1 parent d8f408b commit dc3f03c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/external-dns/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
{{- include "external-dns.selectorLabels" . | nindent 6 }}
strategy:
{{- toYaml .Values.deploymentStrategy | nindent 4 }}
{{- with .Values.revisionHistoryLimit }}
revisionHistoryLimit: {{ . }}
{{- end }}
template:
metadata:
labels:
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 @@ -197,5 +197,8 @@ secretConfiguration:
deploymentStrategy:
type: Recreate

# Optional field that 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)
automountServiceAccountToken:

0 comments on commit dc3f03c

Please sign in to comment.