diff --git a/controllers/libs/base/static/images.yaml b/controllers/libs/base/static/images.yaml index bb62475..2bef19c 100644 --- a/controllers/libs/base/static/images.yaml +++ b/controllers/libs/base/static/images.yaml @@ -4,52 +4,52 @@ images: - name: zuul-scheduler container: quay.io/software-factory/zuul-scheduler - version: 10.1.0-2 - source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/zuul-scheduler.container?id=0183950d3e176bb0d7e43731e6de0022f1283e99 + version: 10.1.0-3 + source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/zuul-scheduler.container?id=4ba66ab24871080d983bc9b24fe4b74a2244d50f - name: zuul-executor container: quay.io/software-factory/zuul-executor - version: 10.1.0-2 - source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/zuul-executor.container?id=0183950d3e176bb0d7e43731e6de0022f1283e99 + version: 10.1.0-3 + source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/zuul-executor.container?id=4ba66ab24871080d983bc9b24fe4b74a2244d50f - name: zuul-merger container: quay.io/software-factory/zuul-merger - version: 10.1.0-2 - source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/zuul-merger.container?id=0183950d3e176bb0d7e43731e6de0022f1283e99 + version: 10.1.0-3 + source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/zuul-merger.container?id=4ba66ab24871080d983bc9b24fe4b74a2244d50f - name: zuul-web container: quay.io/software-factory/zuul-web - version: 10.1.0-2 - source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/zuul-web.container?id=0183950d3e176bb0d7e43731e6de0022f1283e99 + version: 10.1.0-3 + source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/zuul-web.container?id=4ba66ab24871080d983bc9b24fe4b74a2244d50f - name: nodepool-launcher container: quay.io/software-factory/nodepool-launcher version: 10.0.0-3 - source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/nodepool-launcher.container?id=0183950d3e176bb0d7e43731e6de0022f1283e99 + source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/nodepool-launcher.container?id=4ba66ab24871080d983bc9b24fe4b74a2244d50f - name: nodepool-builder container: quay.io/software-factory/nodepool-builder version: 10.0.0-3 - source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/nodepool-builder.container?id=0183950d3e176bb0d7e43731e6de0022f1283e99 + source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/nodepool-builder.container?id=4ba66ab24871080d983bc9b24fe4b74a2244d50f - name: zookeeper container: quay.io/software-factory/zookeeper version: 3.8.4-2 - source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/zookeeper.container?id=0183950d3e176bb0d7e43731e6de0022f1283e99 + source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/zookeeper.container?id=4ba66ab24871080d983bc9b24fe4b74a2244d50f - name: git-server container: quay.io/software-factory/git-deamon version: 2.39.3-1 - source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/git-daemon.container?id=0183950d3e176bb0d7e43731e6de0022f1283e99 + source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/git-daemon.container?id=4ba66ab24871080d983bc9b24fe4b74a2244d50f - name: sshd container: quay.io/software-factory/sshd version: 0.1-4 - source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/sshd.container?id=0183950d3e176bb0d7e43731e6de0022f1283e99 + source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/sshd.container?id=4ba66ab24871080d983bc9b24fe4b74a2244d50f - name: purgelogs container: quay.io/software-factory/purgelogs version: 0.2.3-5 - source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/purgelogs.container?id=0183950d3e176bb0d7e43731e6de0022f1283e99 + source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/purgelogs.container?id=4ba66ab24871080d983bc9b24fe4b74a2244d50f - name: mariadb container: quay.io/software-factory/mariadb version: 11.4-ubi9-1 - source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/mariadb.container?id=0183950d3e176bb0d7e43731e6de0022f1283e99 + source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/mariadb.container?id=4ba66ab24871080d983bc9b24fe4b74a2244d50f - name: busybox container: quay.io/software-factory/sf-op-busybox version: 1.5-3 - source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/sf-op-busybox.container?id=0183950d3e176bb0d7e43731e6de0022f1283e99 + source: https://softwarefactory-project.io/cgit/containers/tree/images-sf/master/containers/rendered/sf-op-busybox.container?id=4ba66ab24871080d983bc9b24fe4b74a2244d50f - name: httpd container: registry.access.redhat.com/ubi8/httpd-24 version: 1-284.1696531168 diff --git a/doc/reference/CHANGELOG.md b/doc/reference/CHANGELOG.md index 6e39b77..ac52a35 100644 --- a/doc/reference/CHANGELOG.md +++ b/doc/reference/CHANGELOG.md @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file. ## [in development] ### Added + +- Capability to simply run privileged zuul-client command from any zuul pods without providing an auth token + ### Changed ### Deprecated ### Removed diff --git a/roles/health-check/zuul-client-from-zuul-pod/tasks/main.yaml b/roles/health-check/zuul-client-from-zuul-pod/tasks/main.yaml new file mode 100644 index 0000000..df9fa0c --- /dev/null +++ b/roles/health-check/zuul-client-from-zuul-pod/tasks/main.yaml @@ -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 diff --git a/roles/run-tests/tasks/main.yaml b/roles/run-tests/tasks/main.yaml index 3e65c4d..080675f 100644 --- a/roles/run-tests/tasks/main.yaml +++ b/roles/run-tests/tasks/main.yaml @@ -38,6 +38,7 @@ - name: validate-purgelogs when: "{{ mode == 'olm' }}" - name: zuul-client-api + - name: zuul-client-from-zuul-pod - name: zuul-components - name: test-external-ze - name: test-log-forwarding