From ec732cecafd63ed464aaaab0b78d2309dd068c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Br=C3=A4mer?= Date: Sat, 25 Dec 2021 20:34:28 +0100 Subject: [PATCH] update master StatefulSets replicas --- controllers/controller_master.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/controller_master.go b/controllers/controller_master.go index e12f9aa..33c391e 100644 --- a/controllers/controller_master.go +++ b/controllers/controller_master.go @@ -93,6 +93,7 @@ func (r *SeaweedReconciler) ensureMasterStatefulSet(seaweedCR *seaweedv1.Seaweed existingStatefulSet := existing.(*appsv1.StatefulSet) desiredStatefulSet := desired.(*appsv1.StatefulSet) + existingStatefulSet.Spec.Replicas = desiredStatefulSet.Spec.Replicas existingStatefulSet.Spec.Template.Spec = desiredStatefulSet.Spec.Template.Spec return nil })