From 30f3cfc687573b3c2f1914b85623817487477c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Blondel?= Date: Mon, 12 May 2025 09:42:32 +0200 Subject: [PATCH 1/2] feat: allow setting revisionHistoryLimit --- charts/ext-postgres-operator/templates/operator.yaml | 1 + charts/ext-postgres-operator/values.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/charts/ext-postgres-operator/templates/operator.yaml b/charts/ext-postgres-operator/templates/operator.yaml index 0a244191..af6ffce3 100644 --- a/charts/ext-postgres-operator/templates/operator.yaml +++ b/charts/ext-postgres-operator/templates/operator.yaml @@ -11,6 +11,7 @@ metadata: {{- end }} spec: replicas: {{ .Values.replicaCount }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} selector: matchLabels: {{- include "chart.selectorLabels" . | nindent 6 }} diff --git a/charts/ext-postgres-operator/values.yaml b/charts/ext-postgres-operator/values.yaml index 0422e05a..e20af979 100644 --- a/charts/ext-postgres-operator/values.yaml +++ b/charts/ext-postgres-operator/values.yaml @@ -4,6 +4,8 @@ replicaCount: 1 +revisionHistoryLimit: 10 + image: repository: ghcr.io/movetokube/postgres-operator pullPolicy: IfNotPresent From 960f5bebad4b4422f17cfa95462f6c178ea26d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Blondel?= Date: Mon, 12 May 2025 09:46:47 +0200 Subject: [PATCH 2/2] fix: add forgotten resources to deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Blondel --- charts/ext-postgres-operator/templates/operator.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/ext-postgres-operator/templates/operator.yaml b/charts/ext-postgres-operator/templates/operator.yaml index af6ffce3..222d8fa1 100644 --- a/charts/ext-postgres-operator/templates/operator.yaml +++ b/charts/ext-postgres-operator/templates/operator.yaml @@ -54,6 +54,10 @@ spec: - name: {{ $key }} value: {{ $value | quote }} {{- end }} + {{- if .Values.resources }} + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- end }} {{- if .Values.volumeMounts }} volumeMounts: {{- toYaml .Values.volumeMounts | nindent 12 }}