
This change adds zuul scheduler reconfiguration when the tenant config changes. Depends-On: https://review.opendev.org/715418 Change-Id: Ib405f5508f513b41f6167e86bf9abe83640d8a18
10 lines
544 B
YAML
10 lines
544 B
YAML
- name: Lookup zuul tenant secret
|
|
set_fact:
|
|
new_zuul_tenants_secret: "{{ lookup('k8s', api_version='v1', kind='Secret', namespace=namespace, resource_name=zuul_name + '-secret-zuul-config') }}"
|
|
|
|
- name: Reconfigure zuul
|
|
when: new_zuul_tenants_secret.data['main.yaml'] != zuul_tenants_secret.data['main.yaml']
|
|
# Use kubectl instead of k8s_exec because of https://github.com/operator-framework/operator-sdk/issues/2204
|
|
command: >-
|
|
kubectl exec -n {{ meta.namespace }} {{ zuul_name }}-scheduler-0 -- zuul-scheduler smart-reconfigure
|