Skip to content

Commit

Permalink
Merge "zuul-executor - only update podSpecTemplate to keep configured…
Browse files Browse the repository at this point in the history
… replicas count"
  • Loading branch information
Microzuul CI authored and Gerrit Code Review committed Nov 21, 2023
2 parents 02338c6 + 2fc36eb commit 454d6f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion controllers/zuul.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ func (r *SFController) EnsureZuulExecutor(cfg *ini.File) bool {
if r.GetM("zuul-executor", &current) {
if !utils.MapEquals(&current.Spec.Template.ObjectMeta.Annotations, &annotations) {
r.log.V(1).Info("zuul-executor configuration changed, rollout zuul-executor pods ...")
current.Spec = ze.DeepCopy().Spec
current.Spec.Template = *ze.Spec.Template.DeepCopy()
r.UpdateR(&current)
return false
}
Expand Down
6 changes: 3 additions & 3 deletions roles/health-check/zuul-components/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
failed_when: "'running' not in item.state"
loop: "{{ _components.json['scheduler'] }}"

- name: Check if, at least, one Zuul Executor Instance Exists, fails otherwise
- name: Check if, two Zuul Executor Instances Exist, fails otherwise
ansible.builtin.fail:
msg: "Zuul Executor has no instances"
when: "_components.json['executor'] | length == 0"
msg: "Zuul Executor must have 2 replicas"
when: "_components.json['executor'] | length != 2"

- name: Check if Zuul Executor Instances are Running
ansible.builtin.fail:
Expand Down
2 changes: 1 addition & 1 deletion roles/run-tests/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
- name: test-cert-manager-letsencrypt
when: "{{ mode == 'olm' }}"
- name: zuul-client-api
- name: zuul-components
- name: test-monitoring
- name: zuul-components
loop_control:
loop_var: role

0 comments on commit 454d6f9

Please sign in to comment.