Skip to content

Commit

Permalink
Merge pull request #114 from cospeedster/patch-1
Browse files Browse the repository at this point in the history
feat: Allow setting `revisionHistoryLimit`
  • Loading branch information
thomas-2020 authored Oct 28, 2024
2 parents 3a3d575 + 57c0f6a commit 18b9430
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
3 changes: 3 additions & 0 deletions apigateway/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
{{- if .Values.revisionHistoryLimit }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
{{- end }}
selector:
matchLabels:
{{- include "common.labels.matchLabels" . | nindent 6 }}
Expand Down
5 changes: 4 additions & 1 deletion apigateway/helm/templates/elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ spec:
{{ toYaml . | nindent 12 }}
{{- end }}
spec:
{{- with .Values.revisionHistoryLimit }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
{{- end }}
{{- with .Values.elasticsearch.affinity }}
affinity:
{{- tpl (toYaml .) $context | nindent 12 }}
Expand Down Expand Up @@ -144,4 +147,4 @@ spec:
memory: 100Mi
{{- end }}
{{- end }}
{{- end }}
{{- end }}
5 changes: 4 additions & 1 deletion apigateway/helm/templates/kibana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ spec:
{{ toYaml . | nindent 8 }}
{{- end }}
spec:
{{- if .Values.revisionHistoryLimit }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
{{- end }}
{{- with .Values.kibana.affinity }}
affinity:
{{- tpl (toYaml .) $context | nindent 8 }}
Expand Down Expand Up @@ -170,4 +173,4 @@ spec:
{{- end }}
{{- if .Values.kibana.extraContainers }}
{{- toYaml .Values.kibana.extraContainers | nindent 8 }}
{{- end }}
{{- end }}
5 changes: 4 additions & 1 deletion apigateway/helm/templates/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ metadata:
name: {{ include "common.names.fullname" . }}-nginx
spec:
replicas: 1
{{- if .Values.revisionHistoryLimit }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
{{- end }}
selector:
matchLabels:
{{- include "common.labels.matchLabels" . | nindent 6 }}
Expand Down Expand Up @@ -82,4 +85,4 @@ spec:
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}

{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions apigateway/helm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
replicaCount: 1

# -- The number of old ReplicaSets to retain to allow rollback.
# revisionHistoryLimit: 10

image:
# -- The repository for the image. By default,
# this points to the Software AG container repository.
Expand Down

0 comments on commit 18b9430

Please sign in to comment.