From bfae724a42893b3ab40af215f911c4bc0d303bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Depriester?= Date: Thu, 16 Jul 2026 14:26:51 +0200 Subject: [PATCH] feat(helm): add support of topologySpreadConstraints Implements solution suggested in #20 --- .../managed-postgres-operator/templates/deployment.yaml | 4 ++++ deploy/charts/managed-postgres-operator/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/deploy/charts/managed-postgres-operator/templates/deployment.yaml b/deploy/charts/managed-postgres-operator/templates/deployment.yaml index 94c9170..0db742d 100644 --- a/deploy/charts/managed-postgres-operator/templates/deployment.yaml +++ b/deploy/charts/managed-postgres-operator/templates/deployment.yaml @@ -91,3 +91,7 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/deploy/charts/managed-postgres-operator/values.yaml b/deploy/charts/managed-postgres-operator/values.yaml index 1be00a1..3254198 100644 --- a/deploy/charts/managed-postgres-operator/values.yaml +++ b/deploy/charts/managed-postgres-operator/values.yaml @@ -47,6 +47,8 @@ tolerations: [] affinity: {} +topologySpreadConstraints: [] + prometheus: enabled: false podMonitor: