Skip to content

Commit

Permalink
[WIP] Add kuttl job
Browse files Browse the repository at this point in the history
  • Loading branch information
cescgina committed Nov 27, 2024
1 parent 7ec0729 commit 693d9a4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
vars:
cifmw_operator_build_meta_build: false
- watcher-operator-validation
- watcher-operator-kuttl

- job:
name: watcher-operator-base
Expand All @@ -19,7 +20,7 @@
vars:
watcher_repo: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/watcher-operator"
watcher_hook: "{{ watcher_repo }}/ci/playbooks/deploy_watcher_service.yaml"
cifmw_install_yamls_whitelisted_vars:
cifmw_install_yamls_whitelisted_vars: &install_yamls_whitelist
- 'WATCHER_REPO'
- 'WATCHER_BRANCH'
- 'OUTPUT_DIR'
Expand All @@ -37,3 +38,24 @@
A zuul job to validate the watcher operator and its service deployment.
vars:
run_tempest: false

- job:
name: watcher-operator-kuttl
parent: cifmw-multinode-kuttl-operator-target
description: |
A zuul job to run watcher operator kuttl tests.
vars:
operator_name: watcher-operator
cifmw_install_yamls_whitelisted_vars: *install_yamls_whitelist
watcher_repo: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/watcher-operator"
watcher_hook: "{{ watcher_repo }}/ci/playbooks/deploy_watcher_service.yaml"
deploy_watcher_service: false
# run the hook to install watcher at the end of the cifmw infra playbook. If we try to run it
# as a standalone plabyook, it tries to load the cifmw ci_script action
# plugin from the zuul executor and doesn't find it
post_infra:
- name: Deploy watcher service
type: playbook
source: "{{ watcher_hook }}"
extra_vars:
watcher_catalog_image: "{{ content_provider_registry_ip }}:5001/openstack-k8s-operators/watcher-operator-index:{{ zuul.patchset }}"
1 change: 1 addition & 0 deletions ci/playbooks/deploy_watcher_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
CATALOG_IMAGE: "{{ watcher_catalog_image | default('quay.io/openstack-k8s-operators/watcher-operator-index:latest') }}"

- name: Deploy Watcher service
when: deploy_watcher_service | default('true') | bool
cifmw.general.ci_script:
output_dir: "{{ cifmw_basedir }}/artifacts"
chdir: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/watcher-operator"
Expand Down

0 comments on commit 693d9a4

Please sign in to comment.