Skip to content

Commit 9a7450e

Browse files
authored
feat: add spec.revisionHistoryLimit to deployment.yaml template (#382)
1 parent 55b8934 commit 9a7450e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

charts/pihole/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ metadata:
1414
{{- end }}
1515
spec:
1616
replicas: {{ .Values.replicaCount }}
17+
{{- if .Values.revisionHistoryLimit }}
18+
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
19+
{{- end }}
1720
strategy:
1821
type: {{ .Values.strategyType }}
1922
{{- if eq .Values.strategyType "RollingUpdate" }}

charts/pihole/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ maxSurge: 1
1414
# -- The maximum number of Pods that can be unavailable during updating
1515
maxUnavailable: 1
1616

17+
# -- The number of old ReplicaSets to retain to allow rollback
18+
revisionHistoryLimit: 10
19+
1720
image:
1821
# -- the repostory to pull the image from
1922
repository: "pihole/pihole"

0 commit comments

Comments
 (0)