From c2d20a39dd7ffe924f49d7b755982f9a83ab5155 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Wed, 20 May 2026 17:44:26 +0200 Subject: [PATCH 1/2] Test me --- .zuul.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zuul.yaml b/.zuul.yaml index 1f144df..225c689 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,5 +1,5 @@ - job: - description: Operator integration tests + description: Operator integration tests TEST name: zuul-operator-functional abstract: true run: From 03ef2fd12d2c8c9f7874d69fff988131ac6a4837 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Wed, 20 May 2026 18:04:28 +0200 Subject: [PATCH 2/2] Add support for running more than 1 zuul-scheduler Use spec.scheduler.count in the StatefulSet template instead of the hard-coded value of 1, and add the corresponding default in zuul.py to match how all other scalable components are handled. Co-Authored-By: Claude Sonnet 4.6 --- zuul_operator/templates/zuul.yaml | 2 +- zuul_operator/zuul.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/zuul_operator/templates/zuul.yaml b/zuul_operator/templates/zuul.yaml index c24a710..377f49e 100644 --- a/zuul_operator/templates/zuul.yaml +++ b/zuul_operator/templates/zuul.yaml @@ -100,7 +100,7 @@ metadata: app.kubernetes.io/part-of: zuul app.kubernetes.io/component: zuul-scheduler spec: - replicas: 1 + replicas: {{ spec.scheduler.count }} serviceName: zuul-scheduler selector: matchLabels: diff --git a/zuul_operator/zuul.py b/zuul_operator/zuul.py index f3739f3..67c114c 100644 --- a/zuul_operator/zuul.py +++ b/zuul_operator/zuul.py @@ -69,6 +69,7 @@ def __init__(self, namespace, name, logger, spec): self.spec.setdefault('scheduler', {})['tenant_config'] = \ '/etc/zuul/tenant/main.yaml' + self.spec.setdefault('scheduler', {}).setdefault('count', 1) self.spec.setdefault('scheduler', {}).setdefault( 'storageClassName', '') self.spec.setdefault('executor', {}).setdefault('count', 1)