-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump zuul image release - use of updated zuul-client
This change adds the capability to simply run privileged zuul-client command from any zuul pods without providing an auth token. Change-Id: I030530929c17cf2a71d9e4316f3ba13ce32ce455
- Loading branch information
Showing
4 changed files
with
39 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
roles/health-check/zuul-client-from-zuul-pod/tasks/main.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Note that thanks to https://review.opendev.org/c/zuul/zuul-client/+/837908 we can | ||
# run zuul-client from the zuul-scheduler (works from any zuul pods) w/o providing any auth token. | ||
# We are ensuring this facility is working through that test case | ||
|
||
- name: Create a autohold request with zuul-client and the generated config | ||
ansible.builtin.command: | | ||
kubectl exec -it zuul-scheduler-0 -c zuul-scheduler -- zuul-client autohold --tenant internal --project config --job config-update --reason CI_TEST | ||
- name: Ensure autohold was set properly | ||
ansible.builtin.command: | | ||
kubectl exec -it zuul-scheduler-0 -c zuul-scheduler -- zuul-client autohold-list --tenant internal | ||
register: _ah_list | ||
failed_when: '"CI_TEST" not in _ah_list.stdout' | ||
|
||
- name: Remove autohold | ||
ansible.builtin.shell: > | ||
echo "{{ _ah_list.stdout }}" | | ||
grep -oE "0000[0-9]+" | | ||
xargs kubectl exec -it zuul-scheduler-0 -c zuul-scheduler -- zuul-client autohold-delete --tenant internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters