Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 18b9430

Browse files
authored
Merge pull request #114 from cospeedster/patch-1
feat: Allow setting `revisionHistoryLimit`
2 parents 3a3d575 + 57c0f6a commit 18b9430

File tree

5 files changed

+18
-3
lines changed

5 files changed

+18
-3
lines changed

apigateway/helm/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ spec:
3131
{{- if not .Values.autoscaling.enabled }}
3232
replicas: {{ .Values.replicaCount }}
3333
{{- end }}
34+
{{- if .Values.revisionHistoryLimit }}
35+
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
36+
{{- end }}
3437
selector:
3538
matchLabels:
3639
{{- include "common.labels.matchLabels" . | nindent 6 }}

apigateway/helm/templates/elasticsearch.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ spec:
9999
{{ toYaml . | nindent 12 }}
100100
{{- end }}
101101
spec:
102+
{{- with .Values.revisionHistoryLimit }}
103+
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
104+
{{- end }}
102105
{{- with .Values.elasticsearch.affinity }}
103106
affinity:
104107
{{- tpl (toYaml .) $context | nindent 12 }}
@@ -144,4 +147,4 @@ spec:
144147
memory: 100Mi
145148
{{- end }}
146149
{{- end }}
147-
{{- end }}
150+
{{- end }}

apigateway/helm/templates/kibana.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ spec:
8686
{{ toYaml . | nindent 8 }}
8787
{{- end }}
8888
spec:
89+
{{- if .Values.revisionHistoryLimit }}
90+
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
91+
{{- end }}
8992
{{- with .Values.kibana.affinity }}
9093
affinity:
9194
{{- tpl (toYaml .) $context | nindent 8 }}
@@ -170,4 +173,4 @@ spec:
170173
{{- end }}
171174
{{- if .Values.kibana.extraContainers }}
172175
{{- toYaml .Values.kibana.extraContainers | nindent 8 }}
173-
{{- end }}
176+
{{- end }}

apigateway/helm/templates/nginx-deployment.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ metadata:
3030
name: {{ include "common.names.fullname" . }}-nginx
3131
spec:
3232
replicas: 1
33+
{{- if .Values.revisionHistoryLimit }}
34+
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
35+
{{- end }}
3336
selector:
3437
matchLabels:
3538
{{- include "common.labels.matchLabels" . | nindent 6 }}
@@ -82,4 +85,4 @@ spec:
8285
priorityClassName: {{ .Values.priorityClassName }}
8386
{{- end }}
8487

85-
{{- end }}
88+
{{- end }}

apigateway/helm/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
replicaCount: 1
22

3+
# -- The number of old ReplicaSets to retain to allow rollback.
4+
# revisionHistoryLimit: 10
5+
36
image:
47
# -- The repository for the image. By default,
58
# this points to the Software AG container repository.

0 commit comments

Comments
 (0)