Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dc3f03c

Browse files
committedOct 31, 2023
Allow to configure revisionHistoryLimit on the K8s Deployment resource
Signed-off-by: Arnold Bechtoldt <mail@arnoldbechtoldt.com>
1 parent d8f408b commit dc3f03c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎charts/external-dns/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ spec:
1616
{{- include "external-dns.selectorLabels" . | nindent 6 }}
1717
strategy:
1818
{{- toYaml .Values.deploymentStrategy | nindent 4 }}
19+
{{- with .Values.revisionHistoryLimit }}
20+
revisionHistoryLimit: {{ . }}
21+
{{- end }}
1922
template:
2023
metadata:
2124
labels:

‎charts/external-dns/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -197,5 +197,8 @@ secretConfiguration:
197197
deploymentStrategy:
198198
type: Recreate
199199

200+
# Optional field that specifies the number of old ReplicaSets to retain to allow rollback with the Deployment.
201+
revisionHistoryLimit:
202+
200203
# opt out of the service account token automounting (at the pod level)
201204
automountServiceAccountToken:

0 commit comments

Comments
 (0)
Please sign in to comment.