From bb6242e3c9106bd2b8f4cc61021e09b62465f9d8 Mon Sep 17 00:00:00 2001
From: zyue110026 <98426905+zyue110026@users.noreply.github.com>
Date: Thu, 19 Dec 2024 07:12:15 -0600
Subject: [PATCH] fix: replicaCount not being respect (#2708)

Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
---
 charts/postgres-operator-ui/templates/deployment.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/charts/postgres-operator-ui/templates/deployment.yaml b/charts/postgres-operator-ui/templates/deployment.yaml
index 3161ae0a..899b07d9 100644
--- a/charts/postgres-operator-ui/templates/deployment.yaml
+++ b/charts/postgres-operator-ui/templates/deployment.yaml
@@ -9,7 +9,7 @@ metadata:
   name: {{ template "postgres-operator-ui.fullname" . }}
   namespace: {{ .Release.Namespace }}
 spec:
-  replicas: 1
+  replicas: {{ .Values.replicaCount }}
   selector:
     matchLabels:
       app.kubernetes.io/name: {{ template "postgres-operator-ui.name" . }}
@@ -102,4 +102,4 @@ spec:
 {{ toYaml .Values.tolerations | indent 8 }}
     {{- if .Values.priorityClassName }}
       priorityClassName: {{ .Values.priorityClassName }}
-    {{- end }}
\ No newline at end of file
+    {{- end }}
-- 
GitLab