From c4fa7954915c10a2b7c065f006f2ec5fb3df39df Mon Sep 17 00:00:00 2001 From: Timofei Larkin Date: Wed, 29 Oct 2025 13:35:52 +0300 Subject: [PATCH] [kubernetes] Use controlPlane.replicas field ## What this PR does The managed Kubernetes app accepts a .controPlane.replicas field, but this value was never used, instead being hardcoded in the KamajiControlPlane template to 2. This patch fixes this. ### Release note ```release-note [kubernetes] Pass the .controlPlane.replicas field into the KamajiControlPlane template, making the replica count of the controlplane pods user-configurable. ``` Signed-off-by: Timofei Larkin --- packages/apps/kubernetes/templates/cluster.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/apps/kubernetes/templates/cluster.yaml b/packages/apps/kubernetes/templates/cluster.yaml index f275c979..2343a90a 100644 --- a/packages/apps/kubernetes/templates/cluster.yaml +++ b/packages/apps/kubernetes/templates/cluster.yaml @@ -147,7 +147,7 @@ spec: podAdditionalMetadata: labels: policy.cozystack.io/allow-to-etcd: "true" - replicas: 2 + replicas: {{ .Values.controlPlane.replicas }} version: {{ include "kubernetes.versionMap" $ }} --- apiVersion: cozystack.io/v1alpha1