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: 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)