From 47713439c354a08364fcc580e6a1b109191cc80d Mon Sep 17 00:00:00 2001 From: cospeedster <52749645+cospeedster@users.noreply.github.com> Date: Mon, 14 Oct 2024 15:52:33 +0200 Subject: [PATCH 1/6] feat: Allow setting revisionHistoryLimit --- apigateway/helm/templates/deployment.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/apigateway/helm/templates/deployment.yaml b/apigateway/helm/templates/deployment.yaml index 351dce4..0e27df6 100644 --- a/apigateway/helm/templates/deployment.yaml +++ b/apigateway/helm/templates/deployment.yaml @@ -31,6 +31,7 @@ spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} {{- end }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} selector: matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }} From 9ddddca6782c59a903cb8a60642715d4dfda35f9 Mon Sep 17 00:00:00 2001 From: cospeedster <52749645+cospeedster@users.noreply.github.com> Date: Mon, 14 Oct 2024 15:56:29 +0200 Subject: [PATCH 2/6] Add revisionHistoryLimit to values.yaml --- apigateway/helm/values.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apigateway/helm/values.yaml b/apigateway/helm/values.yaml index c16c729..83bf6f0 100644 --- a/apigateway/helm/values.yaml +++ b/apigateway/helm/values.yaml @@ -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. From e7f5865c20cb761d3b86d9d408d454d891930798 Mon Sep 17 00:00:00 2001 From: cospeedster <52749645+cospeedster@users.noreply.github.com> Date: Mon, 14 Oct 2024 15:57:42 +0200 Subject: [PATCH 3/6] Update deployment.yaml --- apigateway/helm/templates/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apigateway/helm/templates/deployment.yaml b/apigateway/helm/templates/deployment.yaml index 0e27df6..5923120 100644 --- a/apigateway/helm/templates/deployment.yaml +++ b/apigateway/helm/templates/deployment.yaml @@ -31,7 +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 }} From dff8a5de35f3caece395de27922ec90ffa7fd2a6 Mon Sep 17 00:00:00 2001 From: cospeedster <52749645+cospeedster@users.noreply.github.com> Date: Mon, 14 Oct 2024 15:59:16 +0200 Subject: [PATCH 4/6] Update nginx-deployment.yaml --- apigateway/helm/templates/nginx-deployment.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apigateway/helm/templates/nginx-deployment.yaml b/apigateway/helm/templates/nginx-deployment.yaml index 09b44dd..9f7ecbc 100644 --- a/apigateway/helm/templates/nginx-deployment.yaml +++ b/apigateway/helm/templates/nginx-deployment.yaml @@ -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 }} @@ -82,4 +85,4 @@ spec: priorityClassName: {{ .Values.priorityClassName }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} From e16a996e1e8866612abfab4b36612bd199d3d076 Mon Sep 17 00:00:00 2001 From: cospeedster <52749645+cospeedster@users.noreply.github.com> Date: Mon, 14 Oct 2024 16:07:47 +0200 Subject: [PATCH 5/6] Update elasticsearch.yaml --- apigateway/helm/templates/elasticsearch.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apigateway/helm/templates/elasticsearch.yaml b/apigateway/helm/templates/elasticsearch.yaml index 00f79da..adf9f08 100644 --- a/apigateway/helm/templates/elasticsearch.yaml +++ b/apigateway/helm/templates/elasticsearch.yaml @@ -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 }} @@ -144,4 +147,4 @@ spec: memory: 100Mi {{- end }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} From 57c0f6a793aea5aec98d8accdbdb05891f61c840 Mon Sep 17 00:00:00 2001 From: cospeedster <52749645+cospeedster@users.noreply.github.com> Date: Mon, 14 Oct 2024 16:18:31 +0200 Subject: [PATCH 6/6] Update kibana.yaml --- apigateway/helm/templates/kibana.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apigateway/helm/templates/kibana.yaml b/apigateway/helm/templates/kibana.yaml index 4a1b1aa..06483fd 100644 --- a/apigateway/helm/templates/kibana.yaml +++ b/apigateway/helm/templates/kibana.yaml @@ -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 }} @@ -170,4 +173,4 @@ spec: {{- end }} {{- if .Values.kibana.extraContainers }} {{- toYaml .Values.kibana.extraContainers | nindent 8 }} - {{- end }} \ No newline at end of file + {{- end }}