Pass through extra scheduler config options

This lets users specify params like "relative_priority" without
the operator needing to know about them.

Change-Id: I8a82725e51e8c7172063e0fe944a9ee9f13bada1
This commit is contained in:
James E. Blair 2021-04-07 13:45:44 -07:00
parent 088e663782
commit e503cef9d5
2 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,9 @@ server=zuul-gearman
start=true
[scheduler]
tenant_config=/etc/zuul/tenant/main.yaml
{% for key, value in spec.scheduler.items() -%}
{{ key }}={{ value }}
{% endfor %}
[database]
{% for key, value in spec.database.items() -%}

View File

@ -64,6 +64,9 @@ class Zuul:
self.tenant_secret = spec.get('scheduler', {}).\
get('config', {}).get('secretName')
self.spec.setdefault('scheduler', {})['tenant_config'] = \
'/etc/zuul/tenant/main.yaml'
ex = self.spec.setdefault('executor', {})
self.cert_manager = certmanager.CertManager(